Article View: borland.public.jbuilder.java.language
Article #7257Re: file access in browser - security problem
From: webseal
Date: Thu, 28 Jun 2001 12:16
Date: Thu, 28 Jun 2001 12:16
29 lines
1663 bytes
1663 bytes
Thanks a lot, I think your 2 lines of code are the solution I was looking for Webseal On Tue, 26 Jun 2001 15:35:24 +0100, "Mark Griffiths" <mark@chive.com> wrote: >"webseal" <webseal@web.de> wrote: >> in my applet I try to read some data out of an text file, that is >> stored in the same URL as the applet class on the server. > >If the text file is stored on the same webserver as the applet, then have >you tried: > > URL url = new URL(getDocumentBase(), "datafile.dat"); > InputStream x = url.openStream(); > >This code is from a small applet I wrote once that read it's data from a >file on the web server. I do not remember coming accross any security >implications. I don't think an applet is restricted from communicating with >the server from which it was served. > >I can send you the entire applet if it helps. > >-- >Mark > > >
Technical Details
Message-ID:
<3b3b2005.4916237@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b37a31f.27266020@newsgroups.borland.com> <3b389da6_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5c9fc3a5ac4eaeb1 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-28 05:29:39 PST From: webseal@web.de (webseal) Newsgroups: borland.public.jbuilder.java.language Subject: Re: file access in browser - security problem Date: Thu, 28 Jun 2001 12:16:53 GMT Message-ID: <3b3b2005.4916237@newsgroups.borland.com> References: <3b37a31f.27266020@newsgroups.borland.com> <3b389da6_2@dnews> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 62.224.165.163 X-Trace: dnews 993730608 62.224.165.163 (28 Jun 2001 05:16:48 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews