How to save a photo to server which is newly taken on client
Posted: Fri Jun 03, 2016 5:58 pm
Hi,
The customer is using LANSA Mobile.
They would like to take a photo, show it on image control on Web page,and save it to the sever.
I have succeeded in take a photo and show it on image control on the web page (Base 64 encoded).
#Image1.FileName := "data:image/png;base64," + #CameraUse.ImageAsBase64Data
However, I don't know how to save it to the server.
Is it possible to save it (BASE64 encoded = String type) to BLOB field on a file in the server?
If yes, could you please let me know how to?
Sorry for the basic question.
Thanks in advance.
Best Regards,
Megumi Sawada
The customer is using LANSA Mobile.
They would like to take a photo, show it on image control on Web page,and save it to the sever.
I have succeeded in take a photo and show it on image control on the web page (Base 64 encoded).
#Image1.FileName := "data:image/png;base64," + #CameraUse.ImageAsBase64Data
However, I don't know how to save it to the server.
Is it possible to save it (BASE64 encoded = String type) to BLOB field on a file in the server?
If yes, could you please let me know how to?
Sorry for the basic question.
Thanks in advance.
Best Regards,
Megumi Sawada