ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / HTTP functions
  • 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

Last update: 05/26/2022

Send a report | Local help