java code for file uploading
i want to upload a file(basically a image file of any type) from a jsp page which may reside anywhere(client or server, etc...). then that file will be saved in a specified directory(in server) through the lan. can anybody help me by sending me the java file. i want to use that as class file or a bean in my jsp. then the file name(in server) will be passed as a parameter.
What you want to do is a form based file upload. My prefered way to do that is with the Struts support for that functionality. You can also find the O'reilly multipart handler from Hunter's Java Servlets book and use that. (The license for the latter is that you have to purchase a copy of the book; the former is totally free but you have to build your app using the Struts framework, a good idea in the first place.)
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center