• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

image upload quary:need help

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/
 
The glass is neither half full or half empty. It is too big. But this tiny ad is just right:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic