Hi Can anybody tell me how do i achieve facility like attechement in all email(HOTMAIL/YAHOO)will provide. I mean how i will upoload my file to server and while retriving down-load to local machine. Plz help me. Thanx in advance sanjay
http://www.google.com/search?q=upload+servlet Now wasn't that easy? Running an internet search before asking questions is highly useful, as you can be more specific in your query and sound more knowledgable in the description of your predicament. BTW, the link to the jGuru question is most helpful. If you have further questions after your research, don't hesitate to ask them - we'll be here ready and waiting.
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)
Author of Posts in the Saloon
Joined: Nov 07, 2000
HI Garry Thanx for your help.Now can anybody tell me the document which we can atteched with perticular mail will be stored in dtabase or only referance(Name) stored in database and file put in some folder of web-server. Thanx sanjay
Joined: Aug 02, 2001
Unless you are referring to a particular implementation of a file upload servlet, once you've read the file it's up to you what happens from there. It's hard to tell from your question because you don't give much detail. In the version I used a while back, once I read the file in I saved it on the webserver/appserver using a fully-qualified path that resides in the HTML document area of the webserver so that anyone can get to it, then stored the html link to that location in a database table. Once you get the file it's all up to you. Standard I/O and JDBC functions work just fine in servlets, so you can store the file in any way you choose.