Results 1 to 4 of 4
  1. #1
    chaiwei is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default upload multiple picture at one time

    Hi,

    I want to create a java applet that can select multiple picture at one time and upload to server.
    Is there any java library or reference for me to refer and learn?
    How the java can access to my personal computer and get my computer files/folder? There must be a library or function.

    the applet is like facebook upload multiple picture. something like this.
    I know using html and php is impossible to do that. So either flash or java.
    I have learn abit about java while in school so I prefer java.
    Thanks in advance.

    regards,
    chaiwei
    Last edited by chaiwei; 10-21-2009 at 07:02 AM.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    the applet needs to be 'signed', see jarsigner, as signing the jar files for the applet code (and any dependent libraries that the applet makes use of) will enable the applet to see the browser's local file system.

    your applet would need to render a visual component like a list of files in the folder and checkboxes to select them.

    and the action handler for the 'send' button could invoke a bunch of HTTP post operations to a server side file uploader receiver (such as one you would build in PHP). A good Java HTTP client is the commons-httpclient

    because uploading through the HTTP POST method still only allows you to send one image at a time, but the java applet would simply invoke the HTTP post operation in succession for each selected image.

  3. #3
    chaiwei is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Default will applet able to create watermark?

    Hi,

    Is java applet able to watermark the image and create thumbnail when the time upload?

    Thanks.

  4. #4
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    There are Java API to manipulate images,
    have a look here here here
    likely the operation to take an image and merge a transparent layer containing the watermark and then flatten the image and write it out.. would be more processor intensive than we would want to do in a client-side applet. Would it be possible to have the server side do this. perhaps as a kind of upload action handler, after upload send the image to a watermarking component.

Similar Threads

  1. :large file upload to server(chunk upload)
    By tommy_725 in forum Networking
    Replies: 0
    Last Post: 10-16-2009, 01:21 AM
  2. Make multiple JTextFields focus at the same time.
    By toymachiner62 in forum AWT / Swing
    Replies: 6
    Last Post: 10-09-2009, 03:59 AM
  3. picture backround
    By safiya in forum NetBeans
    Replies: 1
    Last Post: 10-18-2008, 08:13 AM
  4. Picture help
    By deathnote11 in forum AWT / Swing
    Replies: 13
    Last Post: 06-03-2008, 06:46 PM
  5. Picture in a JFrame problem
    By saytri in forum New To Java
    Replies: 3
    Last Post: 01-12-2008, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •