Läsa/skriva från fil i Applet

Java

4 svar · 459 visningar · startad av Cliff

Medlem sedan mars 20011 inlägg
Trådstart#1

Hur gör man för att läsa från en fil och skriva en fil på hårddisken i applet? Jag har förstått att certifikat är en lösning men inte riktigt förstått hur det skall gå till.

Medlem sedan apr. 20007 588 inlägg
#2

Kika här (kolla under rubriken Applet Security).

Medlem sedan apr. 20011 inlägg
#3

Hi!
I have an applet that's supposed to read a file from the server harddisk with filereader, but it doesn't work. "Access denied" or something like that.
It works perfectly in appletviewer though.
I've read the FAQ about it and tried the ".javahot/properties" but without success. Please help me cause this is urgent!

Medlem sedan apr. 20007 588 inlägg
#4

I have an applet that's supposed to read a file from the server harddisk with filereader

An applet executes on the client side so reading a file on the server side with a FileReader isn't possible.

Medlem sedan juni 20008 205 inlägg
#5

... but reading files from the 'net is a piece of cake. http://java.sun.com/docs/books/tutorial/networking/urls/connecting.html

260 ms totalt · 4 externa anrop · v20260731065814-full.d34c6d5a
128 ms — deklarationer (db)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)
127 ms — ändringar (db)