M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Camera Image + Base64 + Upload to remote database

hi,

Can I have an example as to how I can reliably upload a picture taken by the camera, to a remote DB? I've heard that encoding to base64 is recommended. And also I need to add a few bits of information to the image - like the geo-location, datetime etc. Is it possible that I can have a complete example. Quite a few folks seem to be stuck at this

Thanks,
M&M

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Camera Image + Base64 + Upload to remote database

Hi -

What do you mean by remote DB in your case?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Camera Image + Base64 + Upload to remote database

hi,

Like mysql hosted on a cloud server. I heard that there is some disadvantage in encoding image to base64 before uploading as big images may result in pretty big data. So any recommendation or suggestions on what would be the right way to achieve the above?

Thanks,
M&M

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Camera Image + Base64 + Upload to remote database

Hi M&M,

FYI: The final size of Base64-encoded binary data is equal to 1.37 times the original data size.

If you think it's big over data for your app you can convert this base64 to blob and send with post multipartformdata to your http handler. Read more about this way here: https://getsatisfaction.com/apperyio/...

Regards.

Return to “Issues”