Taking photos from camera and saving in a remote database


#1

Hi All,

Now I have to create an app to take a shot from the camera and send this photo to a remote database. I didn’t see any example about this, but I think it’s not complicated. The only difficult part is how to send this photo to a remote database (MySQL), that I’m in doubt if I have to send in base64 or if I have to do this transformation only in my API which connects with the database. Anyone has made something similar and can give some clues?

TIA,


#2

Is this of any use?

http://kio4.com/appinventor/365_mysql_blob_imagenes_Appinventor.htm


#3

hmm yes, it is!!! I’ll try it and tell you my results!!

Thanks, my friend!


#4

Sorry you had to wait 3 minutes before i responded. :joy::rofl:


#5

:rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl: LOL!


#6

Well, just returning to this post, I’ve read the article you showed me, but the approach is different that what I really want. In my case, I need to take a picture in the app, save the picture internally and send the image directly to my remote database, using an API made by me.
Maybe I have to transform to Base64 in the app and after this to send this Base64 code to the remote server. And in my API make again the transformation in order to save in my database… I’m searching more info about it.


#7

It’s just because I want to use the Camera Component to take pictures, but I don’t know (yet) about how to send ths picture to my API.


#8

Well, after some tries I coudn’t be able to send the image to my remote database. All examples I 've seen on internet shows only how to send an image to a database, and to do this, they use the Web.PostFile. In my case, I need to send the image, but with more data, I mean, I’m gonna to send texts (in this case I’s usually use Web.PostText) together with the image. Have anyone made this, using MySQL?


#9

Hi,

Just to inform you that I already got what I need!! Everything is working smoothly as expected!! Thanks to @Peter and your tips!!


#10

Great that it is working. :+1::+1::+1::+1::+1: