Results 1 to 4 of 4
  1. #1
    calnastic is offline Member
    Join Date
    Jun 2011
    Posts
    18
    Rep Power
    0

    Default Can an applet read a file on server?

    Hi,
    I'm trying to design an applet which needs to read a file on server. But the applet runs on user's browser, I don't know how to do it. Please advise.
    Thanks in advance.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,327
    Rep Power
    25

    Default

    The applet can do an HTTP GET to ask the server it was loaded from to send it a file. See the URLConnection class and the HTTPURLConnection classes.
    Last edited by Norm; 06-29-2011 at 06:41 PM. Reason: Define which server

  3. #3
    calnastic is offline Member
    Join Date
    Jun 2011
    Posts
    18
    Rep Power
    0

    Default

    Thanks Norm, I'll give it a try!

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

Similar Threads

  1. applet can't write file in web server??
    By rajula in forum Java Applets
    Replies: 1
    Last Post: 05-02-2011, 02:48 PM
  2. Replies: 1
    Last Post: 04-23-2011, 06:11 AM
  3. Signed Java Applet to read a file on hard drive?
    By ollyworks in forum Java Applets
    Replies: 2
    Last Post: 09-11-2009, 10:08 PM
  4. execute on server and read from file
    By futurpc in forum Networking
    Replies: 1
    Last Post: 03-13-2009, 07:45 PM
  5. [SOLVED] Applet reading from file on server
    By DenniGa in forum Java Applets
    Replies: 3
    Last Post: 02-26-2009, 11:33 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
  •