Image example = accessURL + "card_designer/exampleImage.jpg"
This only works if "card_designer" folder is under your Web Root so
servlet container/Http server could serve it. And that's not a good
idea to store
contents
On the other hand your current working directory is not your Web root!
So new File("card_designer") wil create a directoy under your current
working directory.
As Piro said you should store your contents (images) some where in
your server and serve file contents yourself( Write contents in
response ).
--
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.
No comments:
Post a Comment