Hi to everybody. I use the following code in a xojo desktop application to download a file from my website and copying on user’s desktop.
The function works fine but opening the pdf i get the following error:
“Acrobat reader is unable to open the file because is not correctly formatted or is damaged”
Downloading normally from the browser the file (the sample path is incorrect) it opens
My code:
[quote]dim http As New HTTPSocket
Dim f as FolderItem = SpecialFolder.Desktop.Child(“Manuale.pdf”)
http.Get(“https://www.micropedia.net/manuali/Manuale.pdf”, f)
msgbox “Manual is available on the desktop”[/quote]