GWT's Base64Utils does not use the standard MIME-Base64 characters (see 
Base64Utils.base64Chars Javadoc) so browsers do not understand your data 
URI. You have to choose a standard conform MIME-Base64 encoding. 
Also keep in mind that IE6/7 do not support data URIs and IE8 has a 32kb 
limit.

-- J.

Am Freitag, 16. März 2012 10:41:28 UTC+1 schrieb Amruta Deshpande:
>
> I have a image in form of byte array on my server. I m encoding it 
> with base64 as follows 
>
>     byte[] bytes = bos.toByteArray(); 
>     String base64 = 
> com.google.gwt.user.server.Base64Utils.toBase64(bytes); 
>     base64 = "data:image/jpg;base64,"+base64; 
>
> I am using GWT on client side. I want to display this image and trying 
> to build image object follws: 
>
>     public void setInput(DataSource input) { 
>         Image image = new Image(myUser.getImg()); 
>         this.setWidget(i, 4, image); 
>     } 
>
> but this is not working... can somebody help me?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/AoSnNaZ89NgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to