Monday, October 25, 2010

How do I send program generated Images to my users?

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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate