Forums Register Login

Saving image on server.

+Pie Number of slices to send: Send
i am saving image on server.
when i run it on one m/c as client and server is same its working.
for this saving image as file in temp folder i use path as c://workplace/stud_app/jsp/temp/Filename in servlet.
but application run on cvs as server is different i could not save image.
i tried as request.grtContextPath+temp/Filename its not working.
how i get this server path to save file.
i use Eclipse to run application.
+Pie Number of slices to send: Send
What is "m/c"?
+Pie Number of slices to send: Send
client and server is on same computer.
+Pie Number of slices to send: Send
 

its not working


What does this mean? What exactly is the code doing, and how is or isn't it behaving according to your expectations? Are there any error messages?
[ February 18, 2008: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
You should not hardcode the file path in the servlet. If you hardcoded it, then there must be a folder structure matching your file path, must be present in the server machine.
+Pie Number of slices to send: Send
What is "m/c"?
Are we home yet? Wait, did we forget the tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1205 times.
Similar Threads
context root
Problem in copying file from server to client local machine folder
how to save the file in clint side in temp folder
How to read xlsx file from local java file
servlet API
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:08:53.