AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones HTTP
  • 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.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local