PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Calling an HTTP request: Retrieving an image
HTTPGetResult (Example)
Calling an HTTP request: Retrieving an image
The following code is used to retrieve an image from "www.windev.com". This image will be saved in the "C:\MyImages\Images.GIF" file.
// Define the variables
ResCall is boolean
MyFile is Buffer

ResCall = HTTPRequest("http://www.windev.comr/img/bckgrd/block-h-g.gif")
IF ResCall = True THEN
// Save the image in the file
fSaveBuffer("C:\MyImages\Images.GIF", HTTPGetResult())
END
Remark: In Windows Mobile, the image will be saved in the "\MyImages\Images.GIF" file.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment