Image stored as BLOB
in mysql.
To load image in
android:
- Encode image binary data with base64. $obj->picture = base64_encode($binaryData);
- Encode in json. json_encode($obj)
- Receive data in android
- Get byte[] using Base64.decode.
- Get bitmap .Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
byte[]
decodedString = Base64.decode(encodedImage, Base64.DEFAULT);