Re: Readin images from codeBase
Monday, April 21, 2003 12:24 PM
Applet can read the file included in its Jar or the CAB archive . using getResourceAsStream
InputStream is = this.getClass ().getResourceAsStream ( "picture.gif" ) ;
InputStream is = MyClass.class.getResourceAsStream ( "me.ser" ) ;
java.lang.Class.getResourceAsStream lets you read files in jars, or in the directory from which the Applet class files were loaded.
Its not necessary to sign this applet .
for more info try this link.
else you can place the file you want to have your applet read on the same webserver as ur applet and make a URL connection and read it in your applet .