how do i transfer images from the client to the server using only core
java (no
jsp and
servlets)?
the scenario is, the user uploads an image from the form, with the user specifying the location of the image like "C:\images\img.jpg", and i have to copy it from his computer to the server using http. i was playing around with URL and URLConnection but was having issues regarding the url, cause i can't work out a way to convert the image path to http path.
i know i'm doing it wrong and would like to know the best way to implement the problem.