Hi I am using BitmapFactory to decode my Image files which are provided in the Xml file,my logic works fine for all formates except for PNG encoded with Base64 uridata,Iam converting the base64 to binary formate and then iam passing this data as a input to BitmapFactory,but still BitmapFactory returns NULL,i dont hava any clue on this can any one guide me on this ,my logic is simple and the following is my logic
public static void DecodeImageData(byte[] Input,int size )
{
/*byte [] Temp = null;
Temp = Base64.decode(Input,0);*/
BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
options.inDither = false ;
GlobalBitmap = BitmapFactory.decodeByteArray(Input, 0, size,options);
}
I have used Android util Base64.decode() function to decode base64 data but the result is still the same.