How to read local (Client) file with GWT?
I would like to use GWT to read and parse local csv file.
EDIT: Local file here means client file.
Another way of doing this would be upload the file to server, and send it back as a json. But I feel it’s not the best way of doing it.
Please advise. Thanks.
EDIT: I intend to design a desktop app, so I try to avoid using any web-server scripting.
2 Solutions collect form web for “How to read local (Client) file with GWT?”
A quick search returned this SO question: Read text file in google GWT?
Although GWT doesn’t support
java.io.InputStream, it looks like you could make a request to your CSV File and then parse it.
Remember that if you will host on AppEngine, you won’t have a filesystem available so you’ll have to have the files hosted elsewhere.