🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3630

Re: URGENT: How to manage files in a server from an applet

#3630
From: Gil Delavous
Date: Thu, 30 Oct 1997 00:00
21 lines
1405 bytes
That's funny. I made a little applet that just use and URLConnection with a
BufferedInputStream, using an HTTP url to a text file. As you said I can
read the file from the server. I pushed a bit further and tried to write
data with a BufferedOutputStream... it *seems* to work (i.e. I get no
exception error), but nothing is written on the server! I should have got an
IOException somewhere... no?


>> > Gil:
>> >
>> > You don't.  An Applet cannot write files (or create files/directories)
>> > on the
>> > server where it lives, only read.  All the File related classes
>> > implement
>> > security manager and will stop those activites (even checking for
>> > write
>> > permision, if memory serves).  You are pretty much limited to
>> > activities based
>> > upon InputStreams.
>> >
Technical Details
Message-ID: <63akgg$n8s4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6386sf$mtv4@forums.borland.com> <3457B369.6C0A1DA6@corp.borland.com> <345815FD.5946E259@borland.com> <3458BE6C.67BDB929@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,42fb639896549357
X-Google-Attributes: gid1089d0,public
From: "Gil Delavous" <delavous@webstore.fr>
Subject: Re: URGENT: How to manage files in a server from an applet
Date: 1997/10/30
Message-ID: <63akgg$n8s4@forums.borland.com>
X-Deja-AN: 286033370
References: <6386sf$mtv4@forums.borland.com> <3457B369.6C0A1DA6@corp.borland.com> <345815FD.5946E259@borland.com> <3458BE6C.67BDB929@corp.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.api