dear developers, after making a thorough look over diffrent forums and now got a idea to upload an image using URLConnection.
the idea is, 1) establish a URLConnection between an applet and servlet 2)send the actual image(confused) or path of image at user's local drive to servlet using post method. 3) use servlet to upload image using Image's path or actual Image to server's hard drive from inputstream.
now at one poing i got confused, that whether path of image should be sent to servlet or actual image after encoding it via this communication to further uploading process?
if at any poing you figure out any unsuited way then let me know also
Joined: Nov 18, 2000
You shouldn't send the local path of the image, just the filename itself. For more information on HTTP file upload you may wish to refer to RFC 1867