android - Insert File to Mysql using Json, Gson, InputStream and HttpPost -


i have camera app in android want save image mysql. possible transform image jsonobject string. then, send string thru http post. transform string json file inputstream. then, save inputstream mysql. know it's kind of cloudy of moment it's idea. wanted ask if possible

yes possible.

first convert image base64.

how convert image base64 string?

then send through httppost.

how send post request in json using httpclient?

in server need convert base64 string image , write physical location on server. store path of image in database.

convert base64 string image file?

i dont think need gson library unless need download data server.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -