GWT Images loaded from GAE's Big Table
I am storing images as a BLOB in the GAE's Big Table and was wondering how I present the images in GWT. From looking at the GWT Image class, you have to set it up via an URL but I need to load it up via byte[]. How can I achieve this? I would persist the image data to the file system to get a URL but the sandbox restricts doing so. Best, JP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Images loaded from GAE's Big Table
Create regular servlet which will accept parameter with image name and will write response consisting of your image (do not forget to set correct content type header). In GWT you would have just a Image with src being path to servlet plus parameter. On Fri, May 15, 2009 at 4:35 PM, Pez james.austin.pe...@gmail.com wrote: I am storing images as a BLOB in the GAE's Big Table and was wondering how I present the images in GWT. From looking at the GWT Image class, you have to set it up via an URL but I need to load it up via byte[]. How can I achieve this? I would persist the image data to the file system to get a URL but the sandbox restricts doing so. Best, JP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Images loaded from GAE's Big Table
Ah, I was hoping I didn't have to do that but oh well. Thanks for the reply. Cheers, - JP On May 15, 3:50 pm, Peter Ondruška peter.ondru...@gmail.com wrote: Create regular servlet which will accept parameter with image name and will write response consisting of your image (do not forget to set correct content type header). In GWT you would have just a Image with src being path to servlet plus parameter. On Fri, May 15, 2009 at 4:35 PM, Pez james.austin.pe...@gmail.com wrote: I am storing images as a BLOB in the GAE's Big Table and was wondering how I present the images in GWT. From looking at the GWT Image class, you have to set it up via an URL but I need to load it up via byte[]. How can I achieve this? I would persist the image data to the file system to get a URL but the sandbox restricts doing so. Best, JP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---