Skip to content Skip to sidebar Skip to footer

Get Images From PHP-MySql Server To Android Using Json

i am devloping an application which download image from php-server and display image in image view ..but when i receive image from php page if (!empty($result)) { if (mysql_num

Solution 1:

You need to use binary decoding using base64 decode, and you will get image as bitmap..

byte[] decodedString = Base64.decode(encodedImage, Base64.DEFAULT);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);

Post a Comment for "Get Images From PHP-MySql Server To Android Using Json"