• Advertisement

Archived

This topic is now archived and is closed to further replies.

[java] data files

This topic is 6574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So if IE wont let my applet reach out back to my IP address to download data files for a game, could I do the following? let the user download the data file (would never be more than 1) and save it to his hard drive and then have the applet prompt the user to select the data file to load? Mark Mengelt Program Analyst Phoenix, AZ

Share this post


Link to post
Share on other sites
Advertisement
Most applet viewers won''t let you do that either. This in case you try to hack into confidential or system files on the host computer and then broadcast the contents over the net. You can configure some browsers to let it read the files, but most are pretty strict about not letting it happen. Besides, do you want to tell the end-user that they have to disable security on their end?

Share this post


Link to post
Share on other sites
You CAN connect to the host the applet came from.

What might be your problem (if you have any ) is that some browsers consider (or at least, did previously) "origin" in this context to be not just an IP number but a specific name, protocol and portnumber. I.e. even if the name "myhost" has ip 192.123.31.2, you can''t connect to 192.123.31.2 if the browser consider your origin ro be "myhost". Also since your applet is normally transferred using HTTP on port 80, there''s no guarantee that the browser will allow any other protocol or ports than HTTP and 80....

/NJ

Share this post


Link to post
Share on other sites

  • Advertisement