getting csv file off the client

2 views
Skip to first unread message

imgnik

unread,
Jul 17, 2009, 3:44:16 AM7/17/09
to Google Web Toolkit
hi all,


i use fileupload to retrieve a csv file and send it using a post
method to the server. at the server, i write the csv file using a
filewriter.

but when i open the csv file, it is different. it contains a few more
chunks of data like

------WebKitFormBoundaryN8Z6DOy7DqEWTwtLContent-Disposition: form-
data; name="uploadFormElement"; filename="first.csv"Content-Type:
application/octet-streamBank


i wonder what is the best practice to handle csv. especially parsing
the csv and getting the data. can someone advise me ?

salk31

unread,
Jul 17, 2009, 8:34:46 AM7/17/09
to Google Web Toolkit
Are you using anything on the server to parse the HTTPServletRequest?
If not have a look at commons.apache.org fileupload that will parse
all this stuff for you.

For actually parsing the CSV file there are quite a few packages about
but with various licence terms.
Reply all
Reply to author
Forward
0 new messages