File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes image upload in applet from user's pc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "image upload in applet from user Watch "image upload in applet from user New topic
Author

image upload in applet from user's pc

Venkata Kiran
Ranch Hand

Joined: Sep 06, 2005
Posts: 30
Hai ,
I am working on an applet which contains an image.
i am displaying some images on the html page, when the user clicks them
using LiveConnect i am able to display them on the first image.

instead if user uploads images from his pc, i must the store the image onto the server & diplay it on the first image.

how to save this image on the server & display it back on the applet.
are there any useful links?

[ March 02, 2006: Message edited by: Kiran Kumar ]
[ March 02, 2006: Message edited by: Kiran Kumar ]
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Kiran you need to do two things

(1)You need to Upload image on the server using Servlet
(2)Your Servlet should revert back with URL of the image that uploaded to server. Pass URL as parameter to applet and let applet display that image.


My blood is tested +ve for Java.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: image upload in applet from user's pc