Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8579001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:31:11+00:00 2026-06-11T20:31:11+00:00

I want to decode a base64 encoded image received over email on Google App

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:31:12+00:00Added an answer on June 11, 2026 at 8:31 pm

    The Base64 encoded data is the image file itself, not the unpacked pixel data. It’s the actual file that was attached to the message. So after decoding the Base64 data, in this particular case you had a binary PNG file.

    To manipulate it as an image, you have several options:

    1. Pass the decoded byte[] directly to ImagesServiceFactory.makeImage().
    2. Write the decoded byte[] to file and call ImagesServiceFactory.makeImageFromFilename().
    3. Store the decoded byte[] into the database as a Blob and then call ImagesServiceFactory.makeImageFromBlob().

    Once you’ve done that, unfortunately it doesn’t look like there’s a trivial way to get the ARGB data using Google’s built-in API’s. The solution discussed here may help: Extracting image pixel values in google appengine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want get the image from an xml file which is encoded using base64.
I tried this code to decode base64 image to binary; the thing I want
I have an image thumbnail, encoded as base64, that I want to use as
I want to decode a Base64 encoded string, then store it in my database.
Ok, I have a string of text, encoded in Base64. I want to decode
I want to encode and decode Bitmap object in string base64 . I use
I want to make a Software which decodes Base64-encoded text strings and vice versa.
I have a base64 encoded bit stream, I want to work with. After decoding
I want to send an image from android and save it trought a php
I want to convert some base64 encoded png images to jpg using python. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.