How to allow user upload file on applet??

Sorry I'm new to programming here, but I'm trying to allow user to upload a file to the server so the program inside the server can user the file as input.
I've noticed that JFileChooser, the ideal class for this, is not allowed on the applet, so I don't know how to go about doing this.
Thanks for any input!

ok
you wish to transfer a file from applet to server.
1. Applet gets the file
the applet needs to access the file System therefor it must b a signed applet to get aound the security restrictions. This is why the JFileChooser doesn't work. Check out the tutorials on jars and applets, particularly the security notes.
2. opens a connection with the server
so the applet has a file and needs to send it. there needs to be a service of some form on the destination computer to execpt the file. Perhaps you write your own perhaps you use HTTP.
3. server software stores the file
where an applet is an mini application that runs within the confines of the web browser. a SERVLET is a service program which runs with in the confines of a server, such as a web server.
this is a lot easier to do HTML rather that applet in my opinion but which ever.

Similar Messages

  • How to associate an uploaded file with form data

    I have a "ticketing" app which stores a ticket no. as well as allows users to upload multiple files per ticket. The problem I am having is how to associate an uploaded file with a particular ticket no. As you can guess this becomes complicated when the same user can potentially update multiple tickets using the same file names. I am having difficulty trying to understand how to associate a ticket no with one or more uploaded files. I do have a custom table which I update with the attachments but I am unsure how to, or when to, update the ticket information on this custom table. I only want to retrieve attachments for a given ticket, not all attachments uploaded by a user.Does anyone have any ideas?

    Hi,
    My question is bit related to this topic.
    I am having a requirement to upload the CSV files so that they will store in a database table and later on wards when they search on that table it needs to pull the information and display on the form. I am a new bee to application express. Could some body tell me how to start this process with??. Just give me an overvoew/hints so that I will try to carry on my own.
    Cheers,
    Krishna.

  • Anybody knows that how to Allowing user Customization at runtime for portle

    Anybody knows that how to Allowing user Customization at runtime for portlet.
    What i want is to let user Customization persist to the repository. (not session). bu tmy testing accodring the Jdev 11g guide shows not working for portlet..
    Any body knows how to do this for portlet ? Web center 11g
    thanks a lot.
    Wayne

    Hi Wayne,
    You can only save runtime customizations to the repository for the users present in jazn-data.xml file (If you are using file based security).
    You will have to do the following before you can start saving user customizations:
    1. Create Webcenter Template project.
    2. Apply ADF Security
    3. Use page-definition files for jspx pages.
    After this, whatever customizations you do, will be saved to persistence storage.
    Better would be to try this on server. Since, before deploying, you run the pre-deployment tool, which will take the MDS Repository path as an input and store all persistence storage there.
    If there is nothing in that location, you can be sure something is wrong and debug it.
    Hope that was helpful.
    Regards,
    Kunal Chheda.

  • How to allow user print their draft anwsers before sending it as final ?

    How to allow user print their draft anwsers before sending it as final in a form central questionnaire ?

    Hey MTdev,
    Panel close? events cannot be triggered on a VI being viewed or controlled remotely. Some more information on that can be found in the help here:http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_panel_closeq/.  My suggestion would be to set the Title Bar on the front panel of your remote VI to not be visible so that their only option for closing the window is to click the logout button.  Are you using Remote Front Panels(http://zone.ni.com/devzone/cda/tut/p/id/3277) to do this instrument control?  Using remote front panels allows you to manage a lot of the multiple people accesssing at the same-time type issues so it may be something to look into if you are not already using this method.  
    Regards,
    Kevin
    Product Support Engineer
    National Instruments

  • How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?

    Hi,
    How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?
    I need to give user an option to do so, without the intervention of any Administrator. I also do not want to make user a Administrator else he will be able to login in weblogic and can do any damages unknowingly.....
    Regards,
    Rahul

    Hi,
    Replace the line in the instantconfig.xml
    <WebMessage name=”kmsgChangePasswordLink”><!–<HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML>–></WebMessage>
    with
    <WebMessage name=”kmsgChangePasswordLink”><HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML></WebMessage>

  • How to download and upload files in Java?

    Hi, everyone
    How to download and upload files in Java? Do you have some references about this issue or some valuable web link�? Thanks!
    Best Regards,
    Hai.Ren

    This is too vague a question, please be more specific. What protocol would you like to use? HTTP? FTP? Something else?

  • How do I access uploaded files ?

    How can I access uploaded files which have seemed to have vanished ?

    Hi,
    Please log in https://files.acrobat.com with your Adobe ID and pasdword and sort your file by "Date Added" and check if you can find the uploaded file.
    Hisami

  • Is security allow users include File item?

    I would like to know if there is documentation about File item and zip item security.
    There is any problem to allow users include File item?
    The could use it to broke or attack the system?

    John, My only doubt is if I set "Read
    items that were created by the user" and "Create
    items and edit items that were created by the user" in the Advanced settings sections, are these 4 super users can see all the items in the list even they have Full control access?

  • Help!!! Upload Files using Applet.

    I've built an upload application using html tag <input type="file" ...>. Both client and server's programs have been finished for a long time. However, my boss want to use applet replace html tag(due to some reasons). I want to build an applet which allow user to select multiple files and then upload. But I don't want to modify the server side program. May anyone teach me on how to upload the files which generate the page which is the same as the HTTP request? Thanks a lot.

    No. You could sign the applet for granting the permission. Could anyone tell me how to generate the http request with contents and file inside?

  • How to allow users to mount a Samba shares on a WXP

    Through lots of reading I've managed to get an understanding of how to mount SMB shares at bootup by placing the proper edits in /etc/fstab. While having the shares of the server, running Contribs.org SME Server 6.01 (recently known as Mitel SME Server) and acting as a samba server, being mounted at startup is perfect since the server is always on. This is not the best idea for the XP workstation since it isn't always on. Here is a copy of my present fstab file with x's replacing the passwords.
    fstab               [B---]  0 L:[  1+19  20/ 21] *(1085/1086b)= .  10 0x0A
    # /etc/fstab: static file system information
    # <file system>        <dir>         <type>    <options>          <dump> <pass>
    none                   /proc         proc      defaults            0      0
    none                   /dev/pts      devpts    defaults            0      0
    none                   /dev/shm      tmpfs     defaults            0      0
    tmpfs                  /tmp          tmpfs     defaults            0      0
    sysfs                  /sys          sysfs     defaults            0      0
    usbdevfs               /proc/bus/usb usbdevfs  defaults            0      0
    /dev/cdroms/cdrom0     /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
    /dev/cdroms/cdrom0     /mnt/dvd  udf       ro,user,noauto,unhide   0      0
    /dev/floppy/0          /mnt/fl   vfat      user,noauto,unhide      0      0
    //192.168.2.2/stuff    /mnt/silicon2 smbfs username=kingnubian,password=xxxxxxx,user
    //192.168.2.105/e-smith   /mnt/silicon1 smbfs username=kingnubian,password=xxxxxxx,users,noauto
    /dev/discs/disc0/part5 swap swap defaults 0 0
    /dev/discs/disc0/part1 / xfs defaults 0 1
    I would like users with an account on the Linux box to mount the remote share on the XP box without needing to SU and consequently need the root password. When trying now to mount "e-smith" (The share on the XP box) as a user using "mount /mnt/silicon1" I get a message about needing to be SU.

    To allow users to mount smb shares you need to make smbmnt suid:
    # chmod +s /usr/bin/smbmnt
    Note however that the user needs to own the directory used as mountpoint. So I don't know how to make 'mount /mnt/silicon1' in your setup work for all users.
    For the users to be able to unmount the smb shares as well you need:
    # chmod +s /usr/bin/smbumount
    Now users can do 'smbmount //server/share mountpoint -o username=whatever' or simply 'mount mountpoint' if the details are specified in fstab. To unmount root can do 'umount mountpoint' or users can do 'smbumount mountpoint'.
    Don't confuse smbmount with smbmnt - the first is the command you use to mount shares manually, the second is the one that should be suid and is used both by smbmount and by mount -t smb.
    Hope this helps.
    -bogomipz

  • How to list the uploaded files on the server with a jsp page

    hi every body , iam stuck up with yhis problem . I a have use Random Access File to upload files to the web server , now i want the user can see the files he /she has uploaded or the the files uploaded by others . plese help me how to implement this .
    Message was edited by:
    joshiashutosh

    hi every body , iam stuck up with yhis problem . I a
    have use Random Access File to upload files to the
    web server ,Huh?
    now i want the user can see the files he
    /she has uploaded or the the files uploaded by others
    . plese help me how to implement this .So get the directory using the File class the files are in and list the files inside, showing the result to the user... how difficult would that be?

  • How to Insert user selected files as list attachment using JavaScript?

    I could able to Inset list items using ECMA Script, But for the user added attachment how to save it to list item.
    Please help

    check the similar post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3d92510f-f966-45b2-989d-734ba21c5ce5/how-to-attach-file-to-list-item-using-javascript-in-sharepoint-2010?forum=sharepointcustomizationprevious
    More links
    http://sharepoint.stackexchange.com/questions/88487/using-sharepoint-client-api-to-upload-file-as-attachment-in-javascript
    http://sharepoint-community.net/forum/topics/copy-attachments-of-sharepoint-list-item-to-a-document-library

  • Interactive form, how to allow user use comment and markup tool?

    hi, gurus,
    we are using
      CALL FUNCTION 'FP_JOB_OPEN'
    and
      CALL FUNCTION 'FP_JOB_close'
    together with the sfp funciton module to generate fillable pdf file, but we found out that the pdf generated does not allow user to use the comment and markup tool, it's required adddition reader right?
    could you please how to generate the pdf that can allow user to insert comments ?
    best regards.
    jun

    Hi,
    please follow these steps:
    - You have to enable ReaderRights (on ADS configuration using VisualAdmin)
    - The PDF must be static and NOT dynamic
    Then it works.
    Take care,
    Thomas

  • How to allow users to include a photo when submitting a form

    Using Adobe Livecycle Designer ES Version 8.2.1.3144.1.471865
    Would anyone out there know how to add the functionality of allowing users who are filling out a form to include a photo when submitting the form?
    Thanks in advance for any help.
    Regards,
    Lola

    Hi,
    If you drag an imageField onto the page, when the user clicks on this at runtime, they will be prompted to select an image file.
    There is an example of that in this form: http://assure.ly/j1KdNq.
    There are more image field examples on our site, but I don't think any of them are set up for the user to select an image. http://assure.ly/ozrNSO.
    Hope that helps,
    Niall

  • How do multiple users share files?

    How do multiple users on one computer share files in finder?

    Each user has a Public folder in his or her home folder. The files in that folder are readable by other local users.

Maybe you are looking for

  • Issue while creating location with database link

    Hi all, I am using OWB 10.2.0.4.0 (same Oracle DB version). I am trying to create a location using a database link. When I select the location which the database link is located (From location drop-down list), I face the following error. > ENV0036: T

  • BP email does not show in list

    Hi All. A client is experiencing an issue where one user cannot view the BP's email address. They go to the BP master data screen, does a wildcard search so that a list of all BP's comes up. Even when they do a wildcard search on the email filed it d

  • Rows "lost" by a cursor

    In a software developed in C/SQL a curor is in charge of retreiving data from an Oracle table. For each row a specific treatment is performed. The problem is the following : some rows are not retreived from database and seem to be "lost" by the curso

  • N96 - security warning on each click on internet ?

    why there is a security warning on each click when I use gmail ? How to disable the useless warnings ?

  • Error when executing query

    Hi,   I have a report created using the infoset as an infoprovider. There are multiple reports created with this infoprovider. Few of them are working fine and few of them are not. The error for such erroneous reports are as below. Recently we upgrad