PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Uploading an image to a database
Uploading an image to a database
Started by Denny, May, 15 2017 12:46 PM - 2 replies
Posted on May, 15 2017 - 12:46 PM
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.
Posted on May, 15 2017 - 2:40 PM
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.
Posted on July, 24 2018 - 6:12 PM
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.