hi all,
i posted a question about fileupload here
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/471f5180d9b70ea1#
but i think i didn't phrase my question correctly. so gonna do another
attempt.
I tried to use a gwt fileupload widget to send a csv file to the
server. and at the server i will write it as a file (for other usage)
it by doing : (where request is the httpservletrequest and bw is the
bufferedwriter)
BufferedReader r = request.getReader();
while((thisread= r.readLine())!=null){
bw.write(thisread);
}
bw.close();
}
catch(Exception e1){}
however, i realised that the csv file send out contains :
------WebKitFormBoundaryN8Z6DOy7DqEWTwtLContent-Disposition: form-
data; name="uploadFormElement"; filename="first.csv"Content-Type:
application/octet-streamBank
which results in the file created not the same as the file upload.
I might be wrong in my analysis. can someone advice me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---