PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 22 → Save PDF from an HTTP url
Save PDF from an HTTP url
Débuté par Dario D'Urzo, 03 mar. 2017 16:36 - Aucune réponse
//hostimage.webdev.info/avatars/default.gif
Posté le 03 mars 2017 - 16:36
Hi all,

someone can help me? i have to save on the mobile phone a pdf from an http url. I've tried with this:

IF HTTPRequest(fileUrl) THEN
fileBuffer = HTTPGetResult()
IF fSaveBuffer(path, fileBuffer) = False THEN
RESULT Null
END
END

but the file is not readable.
What i'm doing wrong?
Thank you very much