PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Uploading an image to a database
Uploading an image to a database
Débuté par Denny, 15 mai 2017 12:46 - 2 réponses
Posté le 15 mai 2017 - 12:46
Hello everybody. I am still new to WINDEV Mobile (21) and I am in need of your help.
I need to upload an image file to the database using a web service call. So, what I did is: I loaded the image into a buffer, then encoded it to BASE64. In the database, the image is going through but it is halved.

This is because the BASE64 string is cut out when it passes through the web service call. Is there anything i can do so that the webservice call sends in large data (image)?

Thank you in advance.
Posté le 15 mai 2017 - 14:40
Hi Denny,

if you are using a REST webservice, then you need to be in POST mode
(see WXReplication on my site for an example)

Otherwise, there are several settings on the web server that can create
your problem (timeout, cgi timeout, maxupload, etc)

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 5/15/2017 à 4:46 AM, Denny a écrit :
Hello everybody. I am still new to WINDEV Mobile (21) and I am in need
of your help.
I need to upload an image file to the database using a web service call.
So, what I did is: I loaded the image into a buffer, then encoded it to
BASE64. In the database, the image is going through but it is halved.
This is because the BASE64 string is cut out when it passes through the
web service call. Is there anything i can do so that the webservice call
sends in large data (image)?

Thank you in advance.
Posté le 24 juillet 2018 - 18:12
Hello Denny,

I want to do the same thing, i mean i want to upload an image in a oracle database through webservice
Can you help if had a solution to your issue.