Saturday, November 1, 2014

Re: GWT + Get File Stored in Database

Using rest is quite easy (ex. http://stackoverflow.com/questions/3496209/input-and-output-binary-streams-using-jersey), so you can do something like this:
Window.Location.assign(resource.getUri());
I use restygwt resource as a URI builder, but you can just add a String pointing to the resource.


On Friday, October 31, 2014 6:58:20 PM UTC+1, Gustavo Ponce wrote:
Hi Guys,

I would like to know what is the best approach to get a file stored in a database as binary data "bytea" (Postgres database)

Do I need to generate an independent servlet for this task or can I use a RPC for this behavior?

Thanks in advance

--
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/d/optout.

No comments:

Post a Comment