DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2004

    Uploading Files from HTML using JSP and Java

    I know there are 3rd party controls created, included a few by apache to upload a file to the server. But my issue is that a control has been created by a client of mine (it's a non-paying project, just for practice) and they have provided me with the upload and download signature for the class which are below:
    void downloadFileFromServer(String remoteSource, java.io.File destination)
    void uploadFileFromClient(java.io.File Source, String remoteDestination)
    I know i have to create an input with type=file. But what I don't know how to get the file from request object and pass it on to the FileUploadDownload class created by my client as File object.

    I don't know anything about JSP but I have been learning Java for the past few weeks but any example will be helpful. While searching online, all the forums talk about using a 3rd party control but none of them actually provided any explanation of how I can get from the user machine to File or any other object.

    I have also tried to follow this example but there is still no way to get from bytes to file, especially since File and bytes are completely different things.

    Last edited by kashif_82; 07-17-2008 at 07:55 PM.
    new to programming but getting ther

Similar Threads

  1. Help on Deploying JSP files in NetworkSolutions.com
    By kalyan_2001148 in forum Java
    Replies: 0
    Last Post: 09-20-2007, 07:19 AM
  2. Java book
    By Lou in forum Java
    Replies: 9
    Last Post: 09-19-2007, 05:58 AM
  3. Replies: 0
    Last Post: 12-20-2005, 05:29 AM
  4. Learning JSP or ASP after Java:
    By JayinMichigan in forum Careers
    Replies: 2
    Last Post: 06-13-2001, 09:38 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center