Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload images to apache tomcat server(Linux) from servlet

 
Dev Anand
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, Fatih Keles. The code which you sent is working fine.

Warm Regards
Dev Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic