Hi Greg, from my point of view there are to ways of doing this:
- Generate the image with a servlet on the fly (return the appropriate mime type and the image) or (if the images are small) - you can encode them using base64 and set them as data in an image url Hope that helps - Daniel Kurka 2010/10/25 Greg Dougherty <dougherty.greg...@mayo.edu> > Hi all, > > My servlet is creating images that I need to send to the client. My > first thought was save the image to a file, then send the path to that > image to the client, which can then call new Image > (GWT.getModuleBaseURL () + imagePath); > > This worked just fine in the development environment. But when I > deploy to Tomcat, if I try to use a relative path, it does it from > where Tomcat was started, rather than from my module's base. For > obvious reasons, I'd prefer not to try to save images to a hard-coded > path (makes it a bit difficult to move the app around). > > Is there a clean way to get my module's base path, so I can save the > images relative to that? If not, what IS the approved way to pass > program generated images to the client? > > TIA, > > Greg > > -- > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- 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-tool...@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.