Results 1 to 9 of 9
- 06-17-2010, 02:53 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 3
- Rep Power
- 0
How to download file from apache tomcat server
Hi ~
I am doing this java web application that upload image file to the tomcat server, and splitting the image into chunks and then to upload to the server back.
I was wondering anyone here have an idea on how to download back the files that are uploaded to the server back to my system.
Thanks :confused:
- 06-17-2010, 02:59 AM #2
Use an HTTP GET to have the server send them to you.how to download back the files that are uploaded to the server back to my system
How are the files you want to download any different from any other file that you can download from a server. Wouldn't you use the normal method of downloading the files?
- 06-17-2010, 03:02 AM #3
Member
- Join Date
- Jun 2010
- Posts
- 3
- Rep Power
- 0
Hey thanks for the speedy reply!
I'm actually new to this, and I'm not that familliar with GET, which isit REST ? So I was wondering whether you could help me how to get along with this ? thanks =)
- 06-17-2010, 03:08 AM #4
Need some info on what you are trying to do. You can use a browser to get the files.
The HTTP I referred to is one of the protocols used between browsers and servers. Java programs also have classes that use this protocol. The GET command/request is used to retrieve files. All this is buried in the java classes.
If you do a search here for HTTPConnection and Socket you'll get sample programs that get files from servers.
- 06-17-2010, 03:16 AM #5
Hi use this tutorial
Story of a Servlet: An Instant Tutorial
+ 1 my REP
Good luck :)
- 06-17-2010, 06:14 AM #6
Member
- Join Date
- Jan 2010
- Posts
- 8
- Rep Power
- 0
you can try to use a upload and download component which is called jspSmartUpload,
first,you should download the jar file ,then add it into you project,so that you can use the Class Libaray of the jar which can implement the upload and download work.
hope I can help you
- 06-17-2010, 07:13 AM #7
Member
- Join Date
- Jun 2010
- Posts
- 3
- Rep Power
- 0
Thanks 852000 , gafa and Norm.
I am doing a Java application, where you can upload image file to Apache Tomcat Server. But I do not know where is the image file stored after uploading to the server. Therefore, I am having problem locating the uploaded file, as I need to retrieve the file from the server. :confused:
- 06-17-2010, 08:06 AM #8
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Did you write the code for uploading the files to the server?
If you did then you would know where they were uploaded to. Otherwise you need to explain how you are doing the upload to the server.
For downloading the file, just google "file servlet" and that should lead you to BalusC's file servlet page.
- 06-18-2010, 03:03 AM #9
Similar Threads
-
Download File from the server
By ersachinjain in forum NetworkingReplies: 10Last Post: 04-22-2010, 04:14 AM -
War file of my web application is not running through TOMCAT SERVER
By jason.3dmagic in forum EclipseReplies: 3Last Post: 12-24-2009, 07:04 AM -
how to download file from ftp server
By santhosh_el in forum NetworkingReplies: 0Last Post: 11-19-2009, 06:01 AM -
Servlet - apache tomcat/glassfish server shuts down on servlet usage
By StewS in forum Java ServletReplies: 1Last Post: 12-02-2008, 12:23 AM -
Apache Tomcat 6.0.16
By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-29-2008, 04:22 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks