I want read the content of file and store it in array. I have a code to browse a file using formPanel and formupload.
How to read a file and store in array.
Any sample code will be of great Help.
GWT client code is simply JavaScript and is constrained by the same limitations that any regular JavaScript would be subject to in the browsers sandbox model.
That is to say no local file access is available to JavaScript from any browser.
The file dialog box and the resulting transfer to the server is handled by the browser and is not available to the JavaScript code in any fashion.
You would have to upload the file to a server and then process the file on the server and display what you needed to display by sending the data back to the client from the server.