That's one solution, with the following caveats: 1) it's fine if you don't plan to support IE 2) base64 adds 33% to the actual bytecount 3) URIs are limited in size (different platforms tend to have different limits) 4) Data URIs don't benefit from browser caching.
-jason On Oct 23, 2008, at 9:08 AM, Jim Freeze wrote: > > Hi > > On Thu, Oct 23, 2008 at 9:54 AM, Jason Essington > <[EMAIL PROTECTED]> wrote: >> >> Although you could certainly return the bytes of an image via RPC, >> once you have them on the client side, there is no way to actually >> turn those bytes into an image (or even save those bytes to the file >> system). That is a limitation of the XMLHTTP request and javascript, >> not a limitation made by GWT. > > Jason, once you have the data, can't you use it to embed the image > directly into the DOM via base64 encoding? > > <img src="data:image/gif;base64,R0lGODlhUAAPAKIAAA...."> > > > > > > -- > Jim Freeze > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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 -~----------~----~----~----~------~----~------~--~---
