Re: Saving image from web without using adodb.stream
- From: "mayayana" <mayayanaXX1a@xxxxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 16:01:19 GMT
The FileSystemObject can write binary files, but
I don't think there's a way for VBS to directly
"digest" a byte array, which seems to be what the
ResponseBody is returning.
The problem is that in my windows ce application I dont have the
adodb.stream and no ftp utilities.
It's easy to install an FTP program if you
want that. CoffeeCup FTP is free and fully
adequate. (FTP is very simple. There's no
point in paying for extra fancy programs that
let you pretend you're "editing files on the server".)
The solution would be vb, but i really dont know where to start from
If you want it automated and either want to use
a component or code it yourself, See here:
http://www.jsware.net/jsware/jryo.php3
Go down to the bottom of the page where there's
"Information for Scripters" and "Information for
Programmers". Those explain two options:
1) You can download a downloading component that can
also writes files to disk. It also has a few other
functions, like parsing RSS and telling you the response
code and string the server gave to your request.
(For instance, if the server sent back 302 (moved)
along with the new URL, the component will give you
access to that data.)
2) You can download the source code for a VB6
UserControl that is almost the same thing as the
component. It can be added to any VB project to
provide the same downloading functionality.
Both the component and the UC are written in
VB6 with no dependencies other than the VB6 runtime.
(MSVBVM60.DLL)
They use Windows sockets 1 API (available on
Windows versions 95 and up) and carry out the
server conversation "directly", so there's no need
for any IE libraries like URLMON.dll and no need
for winsock ocx files, etc.
.
- References:
- Saving image from web without using adodb.stream
- From: J_Zanetti
- Re: Saving image from web without using adodb.stream
- From: mr_unreliable
- Re: Saving image from web without using adodb.stream
- From: J_Zanetti
- Saving image from web without using adodb.stream
- Prev by Date: Software uninstalls - MSIEXEC /X
- Next by Date: reading a key during the execution of a script
- Previous by thread: Re: Saving image from web without using adodb.stream
- Next by thread: Re: Saving image from web without using adodb.stream
- Index(es):
Relevant Pages
|
Loading