0

I tried this code to decode base64 image to binary; the thing I want to get image of the byte array on client... I am not pretty sure how to create image of byte array on gwt client so I need your help

Any useful comment is appreciated

1 Answer 1

1

I would suggest using inline-images, for example:

data:[<mediatype>][;base64],<data>

<img src="data:<mime-type>;base64,<yourBase64Data>" width="16"  height="16"/> 

However according to the RFC, there are size limitations for inline images. Browsers are only required to support URLs up to 1,024 bytes in length. IE 5-7 does not support Inline images.

In IE8 or later version of IE data protocol is supported: msdn:Data Protocol

Sign up to request clarification or add additional context in comments.

2 Comments

Emm... The thing is the byte array is comming from decoded base64 string; So the thing is IE8 doesn't support base64 images so is there a way to convert base64 to binary right on GWT client?
I mean can base64 be converted to binary right on the client?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.