aspose file tools
The moose likes Servlets and the fly likes Attechedment/DownLoad Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Attechedment/DownLoad Servlet" Watch "Attechedment/DownLoad Servlet" New topic
Author

Attechedment/DownLoad Servlet

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
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

Eat JAVA, Drink JAVA, Sleep Java
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
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)<br />Author of <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi" target="_blank" rel="nofollow">Posts in the Saloon</a>
Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
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
Gerry Giese
Ranch Hand

Joined: Aug 02, 2001
Posts: 247
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Attechedment/DownLoad Servlet
 
Similar Threads
HOTmail
To know about File Upload
Opening a file that already exists
to get callerid through jdbc
JTextField size