How to read text file that was zipped in GWT?

244 views
Skip to first unread message

Henry

unread,
Apr 2, 2010, 8:53:39 PM4/2/10
to Google Web Toolkit
I know how to read text file in GWT, that's easy.

However if that file got zipped (.zip or .rar), then how can i read
that text file?

rjcarr

unread,
Apr 3, 2010, 2:30:57 AM4/3/10
to Google Web Toolkit
How do you read a text file in GWT? What does that even mean?

If you mean reading a zip file on the server, then that isn't a gwt
question, but you should look into ZipFile or ZipInputStream.

dolc...@gmail.com

unread,
Apr 3, 2010, 4:03:13 PM4/3/10
to Google Web Toolkit
I think what he's saying is that if he has a textresource or something
sent zip'd to the client, how would you unzip it? I guess you'd have
to either find a JS or GWT implementation of whatever compression
scheme you're using.

Sripathi Krishnan

unread,
Apr 4, 2010, 5:18:14 AM4/4/10
to google-we...@googlegroups.com
See this discussion thread - http://groups.google.com/group/google-web-toolkit/msg/270a6d0b6b08386e

Most browsers (including IE6) understand gzip and will automatically uncompress the content if the appropriate http headers are set. You don't have to write any code to uncompress content. On the server side, you have to add some logic, but it really is trivial.

--Sri



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


Reply all
Reply to author
Forward
0 new messages