- Posted by: Dushyant Bhardwaj
- Posted on: April 28 2004 07:08 EDT
I using oreilly's MultipartRequest for file upload.
I am reading the file from Servlet stream first and inserting it into DB ,
now I want this file to copy into AppServer's directory also , but
I m getting error "Corrupt form data: premature ending".
It seems my same stream is being used for Upload to directory and writing in DB.
If I do vice versa I get "Null pointer exception".
How can do both the things together.
Any clue will be helpful.
Thanks in advance.