dcsimg
Excel File upload
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vaishali_Joshi
Posted On:   Friday, December 7, 2001 03:33 PM

Hi
I am trying to upload an excel from applet. Everything is working fine for files of type text, but for excel file it creates the file on the server, but does not store any excel data in it. But the same code (except I have to change the extension for the file name on the server) works fine for uploading .txt file...Is there any special handling required...

How I do this is : I read the file in fileinputstream, write to outputstream. On the servlet side, I read the input stream and write to fileoutputstream..


Your input/help is highly appreciated..

Thanks

Re: Excel File upload

Posted By:   Munish_Jauhar  
Posted On:   Friday, December 7, 2001 08:31 PM

Hi Vaishali


Why dont you use the file upload servlet written by Jason Hunter(author of the Java Servlet programming book by Oreilly publishers). It works very well and you can modify the source to suit your requirements. Checkout:

http://www.servlets.com/cos/index.html

http://www.jguru.com/faq/view.jsp?EID=160



Hope that helps

Munish Jauhar
About | Sitemap | Contact