| Author |
how to read the multipart form-data file content in servlet?
|
K Vidhyakar
Ranch Hand
Joined: Jul 10, 2005
Posts: 66
|
|
HI,
Is there any way to read the multipart form-data file content in servlet?
I have seen oreilly servlet api but that will save the file in the server. But i want to read the uploaded filecontent without saving.
Can you suggest me the better way to handle this?
Thanks
Vidhyakar
|
 |
Mark Wa
Ranch Hand
Joined: May 29, 2009
Posts: 122
|
|
|
apache commons file upload api?
|
 |
K Vidhyakar
Ranch Hand
Joined: Jul 10, 2005
Posts: 66
|
|
using apachi common file upload, we can read the file content without saving the file?
I am going through the api now.
|
 |
Mark Wa
Ranch Hand
Joined: May 29, 2009
Posts: 122
|
|
|
My guess is your better off saving it to a temp directory and reading it from there, rather than holiding it all in memory. Depends on the size of the file I assume.
|
 |
 |
|
|
subject: how to read the multipart form-data file content in servlet?
|
|
|