Monday, August 26, 2013

Re: load image file from directory outside WAR folder and display in gwt app.

Override the doGet method in your GWT servlet and stream the appropriate file based on the query string you send it.


On Mon, Aug 26, 2013 at 6:41 AM, Jostein <josbjor@gmail.com> wrote:
Hi all,
I have the following situation:

I have a directory, /home/images, on my Ubuntu server containing images. The images are uploaded from an Android application by a servlet.
I am running Tomcat7 on this server and the image directory is owned by the Tomcat7 user so it should be accessable from tomcat.

Now I want to view the images in my GWT application running on the same tomcat server. I have not been able to find a working example for this.

I hope someone point mee to the right solution here. I would like to see example including both server- and clien side code.

Thanks in advance

Jostein

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment