Thank you Json this really helped me.. But I am kind of stuck in a problem related to this topic..

Is there any way to know the image format / type when getting an image out of the byte array?...