| 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
|
 |
 |
|
|
subject: Upload images to apache tomcat server(Linux) from servlet
|
|
|