I want to decode a base64 encoded image received over email on Google App Engine(GAE). When I extract the image from MimeMessage I get a base64DecoderStream object. I initially assumed that this decoded data is byte array in ARGB format, but that doesn't seem to be the case here. I verified this by comparing the decoded byte array with the one got from running "ImageIO.read(ImageFile).getRGB()" and they didn't match.
So I was wondering:-
1) Which image format data did I get after decoding the Image with base64 ?
2) How can I get the actual image PNG or JPG on GAE ?
3) Finally, is there a way to get the received email image in ARGB format on GAE ?
Any help is greatly appreciated... Thanks