#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    1
    Rep Power
    0

    Java Applet Problem


    Hi,

    This is a quite urgent problem....

    I have uploaded an applet onto my web page. It takes an image as input, embosses it and displays it.
    At the moment the input is a text field that takes a url.
    I want to create an upload or open file button as well, so that it is possible to input an image that is stored on the users computer. In addition I need a save function to save the altered image. Can I use the JFileChooser???

    Is this possible using an applet, and if it is - where can I find some more information about this?

    Thanks in advance!!!
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Location
    Lincoln, NE. USA
    Posts
    2,353
    Rep Power
    117
    You will need to make a multi-part form that uses a "file" form field for the user to upload a file. You then need some sort of package that allows the servlet/jsp to get the file once uploaded. A common one is the O'Reilly package. You can find more information in this forum by using the search function and looking for this. Here is a lnk to the oreilly package

    http://www.servlets.com/cos/javadoc/...rtRequest.html

IMN logo majestic logo threadwatch logo seochat tools logo