Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload images to apache tomcat server(Linux) from servlet  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!