PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WM/WB - Dowload a file
WM/WB - Dowload a file
Iniciado por guest, 16,jun. 2015 13:38 - 2 respuestas
Publicado el 16,junio 2015 - 13:38
Hi,

using an Android device I want to download a file from a WB webserver.
Currently I'm using a http-request to a awp-page, which in returns sends an answer using StringDisplay().
This works for regular text as well for files (using fLoadBuffer)

However for files the httprequest() method slow. Downloading the same file using the browser on the device is 2-3 times faster!

So I wrote a little java code to download a files from my app. Works great and is also 2-3 times faster.

Because some of these files contain private data, like names and adresses, I dont want these files on the webserver, public available to anyone (including Google...). Even not for a few seconds.

What is a simple way to handle this situation, where I want to download a file which is only visible for a specific client device?
Publicado el 16,junio 2015 - 14:00
Hi Arie,

your answer is in your question...

If you want high security, and the file never on the drive of the server, you need to store it in a blob inside your DB, call an awp page, and have the awp page send it to the client with stringdisplay without storing it on disk first...

Isn't your java code able to call ANY url (including an awp page)?

Best regards
Publicado el 16,junio 2015 - 15:04
Smart idea. I will try that.
I guess I was focusing to much on replacing the httprequest() AND the stringdisplay()