one small problem. can any one tell me how to save an image uploaded by a client in the server. say that the client clicks on a browse button and selects a file on his/her hard drive. how do we get that file and save it on the server?
thank you in advance
if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
You can read the image from a web application using third party api provided by orielly If you are using struts then it provides using which you can read images/files in web application Google it for code using the above approaches.
ok, i know how to get the body content. but how do you save that file on your server. could some one provide a small piece of code or even a algo of how to save that file it would be really appreciated.
thank you
if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing