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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.