aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes image upload quary:need help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "image upload quary:need help" Watch "image upload quary:need help" New topic
Author

image upload quary:need help

John Mclain
Ranch Hand

Joined: Nov 04, 2007
Posts: 30
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

thanks
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
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

For a Java class to handle this you may look at:

http://www.jscape.com/secureinetfactory/docs/javadoc/com/jscape/inet/http/HttpFileUpload.html

part of Secure iNet Factory suite

http://www.jscape.com/secureinetfactory/
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: image upload quary:need help
 
Similar Threads
How to know the absolute directory path of WebContent folder?
Uploading File??
Upload
Uploading Image from jsp to database via servlet
how to upload images