• Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading and Downloading files

 
Shiva Gajjala
Ranch Hand
Posts: 77
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I would like to know what is the best way to upload & download files using Servlets/Jsp's . In some websites I have seen example using third party API(by oreilly). Is it better to follow any third party or can we do it just by using I/O streams. Can someone explain the steps of uploading files. And where do we need to store files once the user uploads ,Database or server??

Regards-
Shiva
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use the O'Reilly stuff, it's obsolete. http://commons.apache.org/proper/commons-fileupload/ is a better choice. That site has an extensive user guide with example code that should get you going. And yes - it's better to use an existing solution than to write and debug one yourself.

And where do we need to store files once the user uploads ,Database or server?

You store them wherever it's convenient and makes sense for your application.
 
Shiva Gajjala
Ranch Hand
Posts: 77
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer , thanks for the link .I will go through it .
 
Mauro Trevigno
Ranch Hand
Posts: 99
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For multiple File upload, you could use Plupload.

Its very friendly and have good docs.

Thanks,
M
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!