Is It A Good Practice To Send Images In Base64 String From Android To PHP?
In my android application I Capture image or select image from gallery. then I encode that image in base64 string. then I send that image to PHP in JSON format or with normal post
Solution 1:
It's a good practice "If" you are saving your images as strings in your database, but since you are converting the image back to png and saving just the path in mysql (which is a very good practice), doesn't make sense to convert to base64.
I have built a web application as well as mobile apps which display/ store multiple images. I would suggest, don't encode it, just send images in chunks and your php code will combine those chunks, create an image file and store the file path of the image in the database(image_url).
Post a Comment for "Is It A Good Practice To Send Images In Base64 String From Android To PHP?"