aspose file tools
The moose likes Servlets and the fly likes Upload images to apache tomcat server(Linux) from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Upload images to apache tomcat server(Linux) from servlet" Watch "Upload images to apache tomcat server(Linux) from servlet" New topic
Author

Upload images to apache tomcat server(Linux) from servlet

Dev Anand
Ranch Hand

Joined: Aug 30, 2009
Posts: 40
I have the code to upload image file to tomcat server folder which in windows OS.

But I want to upload the image file from servlet to Tomcat Server folder (say 'images') which is Linux based. How can I achieve this?

Can anyone help me in this regard?

Thanks in advance.

With Regards

Dev Anand
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
I guess the only part you should change in your code is folder paths from windows style to linux if any.
Something like that : "C:\Tomcat5.5\images" to "/usr/Tomcat5.5/images"
Dev Anand
Ranch Hand

Joined: Aug 30, 2009
Posts: 40
Thanks a lot, Fatih Keles. The code which you sent is working fine.

Warm Regards
Dev Anand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload images to apache tomcat server(Linux) from servlet
 
Similar Threads
link the folder outside servletContext realPath?
How to upload a file?
JSP uploader
Image jsp servlet controller bean and database
how to access images that are not in war file???