Downloading a file from the web

mikesena

New Member
Hi Guys,

What's the best way to download a file from the web and save it to the disk in Progress?

I can get the data into a memptr from the web, so if someone knows how to output a memptr to a file that would work.

Thanks!
Michael
 
Just an update, I now know how to put the memptr straight into a file, but I was wondering if there are any other libraries to use for http transactions. At the moment, I'm using libhttp.p from the standard libraries on oehive.org
 
You don't say anything about your Progress/OpenEdge version. This is essential information.

If you're on OpenEdge 10 you could use the COPY-LOB, otherwise you need to everything yourself. You would need something like the GET-BYTES ( ) function to store portions (if it's larger than roughly 32K) the string on a character variable and write that out to a file.

Regards, RealHeavyDude.
 
Back
Top