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 6096859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:58:34+00:00 2026-05-23T12:58:34+00:00

I have faced an interesting thing as… if I use this code to download

  • 0

I have faced an interesting thing as… if I use this code to download image as a string for Base64 encoded byte array it works fine

data:image/png;base64,<String>

But I was tring to encode the same image to Base32 and call it as

data:image/png;base32,<String>

But that way doesn’t work. Maybe I am using some wrong protocol or something… 🙁

So my question is…
How to call Base32 image for img tag?

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-05-23T12:58:34+00:00Added an answer on May 23, 2026 at 12:58 pm

    If you mean the browser isn’t displaying the image, all it means is that the browser doesn’t support base32. I have the same issue with Iceweasel4, Firefox 3, and Chrome 12. IE7 doesn’t show either base64 or base32-encoded inline images.

    Here are the files I’m using for test, stolen from http://www.sweeting.org/mark/blog/2005/07/12/base64-encoded-images-embedded-in-html:

    test1.html shows fine in Firefox, Iceweasel, Chrome:

    <img src="data:image/gif;base64,R0lGODlhUAAPAKIAAAsLav///88PD9WqsYmApmZmZtZf
    YmdakyH5BAQUAP8ALAAAAABQAA8AAAPbWLrc/jDKSVe4OOvNu/9gqARDSRBHegyGMahqO4R0bQcj
    IQ8E4BMCQc930JluyGRmdAAcdiigMLVrApTYWy5FKM1IQe+Mp+L4rphz+qIOBAUYeCY4p2tGrJZe
    H9y79mZsawFoaIRxF3JyiYxuHiMGb5KTkpFvZj4ZbYeCiXaOiKBwnxh4fnt9e3ktgZyHhrChinON
    s3cFAShFF2JhvCZlG5uchYNun5eedRxMAF15XEFRXgZWWdciuM8GCmdSQ84lLQfY5R14wDB5Lyon
    4ubwS7jx9NcV9/j5+g4JADs=">
    

    test2.html doesn’t show in any browser I have.

    <img src="data:image/gif;base32,I5EUMOBZMFIAADYAUIAAACYLNL77776PB4H5LKVRRGAK
    MZTGM3LF6YTHLKJSD6IEAQKAB7YAFQAAAAAAKAAA6AAAAPNVROW47YYMUSKXXA4OXTN375QKQBCD
    JEIEO6QMQYY2Q2R3QR2G2BZDEEHQJYATAJA4656QTFXMQZDGOQABY5RIUAYLK2YCSTMFWLSFFDGU
    QQPPRST6F6FOTBZ7VIQOAQCRQ6BGHCTWWRVMSZPB7XF36ZTGY2YBNBUII4IXOJZITDDODYRQM34S
    SOJJC33GHYMW3B4CRF3I5CFAOCPRQ6D6PN6XW6JNQGOIPBVQUGFHHDNTO4CQCKCFC5RGDPBGMUNZ
    XHEFQNXJ7F46OUOEYAC5PFOECUK6AZLFTVZCXDHQMCTHKJB44JJNA7MOKHLYYAYHSLZKE7RON4CL
    XDY7JVYV674PT6QOBEADW===">
    

    I used b64decode and b32encode from Python’s base64 module to create the base32-encoded image from the base64-encoded image.

    According to https://www.rfc-editor.org/rfc/rfc2397, the formats supported are base64 and plain ASCII (for those characters outside the range of printable 7-bit characters, you use the standard %XX hex-encoding.)

    IE apparently doesn’t support any in-line images until IE8.

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

Sidebar

Related Questions

I have faced with this erros ! /usr/bin/codesign failed with exit code 1 I
I have faced this problem quite often during the last couple of months, during
i have faced this problem couple of days ago, while trying to import an
I have faced this question in my Interview as well. I do have many
I have faced this problem on numerous sites I have developed, and now it
I seem to have faced this problem many times and I wanted to ask
Hope some of you might have faced this requirement:- I have desktop based product,
Ok. This is got to be one of the weirdest errors I have faced.
I faced an interesting problem as... I have MSSQL (2005) table A which contains
I faced a very interesting fact, and hope you have an answer for that.

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.