This is a very old thread but thought to share this answer as it took lot of my development time to manage
NULL return of
BitmapFactory.decodeByteArray() as @Anirudh has faced.
encodedImage string is a
JSON response, simply use
Base64.URL_SAFE instead of
byte decodedString = Base64.decode(encodedImage, Base64.URL_SAFE);
Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);