Results 1 to 5 of 5
  1. #1
    john_thomas03 is offline Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    0

    Default How to upload a file from client to server

    hi,
    how can i Uploading a file from client location to server location , if the path is present inside a excel sheet.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    Read the path from the sheet, read the file and send it to the server.

    What part of this are you having a problem with? Can you be more specific?

  3. #3
    john_thomas03 is offline Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    0

    Default Please reply fast.... urgent requirment

    I used java.io.File class for reading the file from client machine ....,its working fine wen i run on local machine . But wen i deploy on server ,i think server is looking the path location of the file, on its local drive ,instead of looking on the client machine ,....

    What sort of object i have to use to read the file from client machine and copy on the server ......
    if u can sent some sample code ,it will be very helpfulll.


    Please reply fast.... urgent requirment

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    i think server is looking the path location of the file
    The client would read and send the contents of the file not the path to the file. The server can't look on the client's machine.

    Use Search on this forum for sample code.

  5. #5
    john_thomas03 is offline Member
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    0

Similar Threads

  1. File upload from standalone client
    By Astghik in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 01-12-2010, 03:07 PM
  2. Upload war file on server
    By sandeeprao.techno in forum Advanced Java
    Replies: 2
    Last Post: 12-16-2009, 11:55 AM
  3. :large file upload to server(chunk upload)
    By tommy_725 in forum Networking
    Replies: 0
    Last Post: 10-16-2009, 01:21 AM
  4. Replies: 3
    Last Post: 07-29-2009, 05:52 AM
  5. UPload a file to server?
    By makpandian in forum JavaServer Pages (JSP) and JSTL
    Replies: 10
    Last Post: 07-21-2009, 02:35 PM

Posting Permissions

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