> When I start my Applet
URL?
> ..I need to retrieve a db4o database file from a
> server.
Which server? The same one that hosts the applet?
>..I tried reading the file with an InputStream and then writing it
> to a FileOutputStream, but this doesn't work,
Maybe it's just lazy. [ ;-) ]
>..because when trying to write a File, I get some kind of
> SecurityException (don't remember exactly).
Perhaps you should write it down, or copy/paste it..
<http://www.physci.org/codes/javafaq.jsp#exact>
>..Tried right now again and now I get a AccessControlException
> (access denied) when trying to open an InputStream.
Applet security sandbox. You're in it.
<http://www.physci.org/codes/javafaq.jsp#security>
To break out of that sandbox, you need to sign your
applet and convince the user to accept your signed code.
> public class AppletTest extends JApplet {
Why a JApplet?
> URL url;
> URLConnection conn;
>
> public void paint( Graphics g ) {
..and why override paint (rather than paintComponent)
> try {
> url = new URL( http://www.tac.ee/~johan/java/AppletTest/test.db4o" );
> conn = url.openConnection();
What?!? You are trying to open a new connection every
time the applet is painted?
> }
> catch( allkindsofexceptions ){}
Bad, bad, bad! Never swallow exceptions in code that is failing!
<http://www.physci.org/codes/javafaq.jsp#stacktrace>

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"Sing out Hare Hare, dance the Hoochie Koo."
Led Zeppelin 'The Song Remains The Same'
note: when anyone answers my help request, please send a copy of your
reply also to my private e-mail address (remove underscores) because I
always don't receive all news messages (don't know why)
johan
> Hi
>
[quoted text clipped - 43 lines]
>
> johan
Andrew Thompson - 03 Sep 2005 11:04 GMT
> note: when anyone answers my help request, please send a copy of your
> reply also to my private e-mail address (remove underscores) because I
> always don't receive all news messages (don't know why)
Whereas I don't care. I suggest you find yourself a decent ISP
or use one of the web based interfaces to usenet. Such as..
<http://groups.google.com.au/group/comp.lang.java.help/browse_frm/thread/5b507584
1231edb7/2386a2766372e0de#2386a2766372e0de>
<http://www.javakb.com/Uwe/Forum.aspx/java-setup/6575/problem-getting-a-db4o-file
-from-a-server-with-an-Applet>
As an aside, my news-reader client is not set-up to send
email, and I have no intention of changing that.

Signature
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"If you don't love me baby, you better act like you do.."
Screamin' Jay Hawkins 'I Need You'