how to get applet to load files from client downloaded jar?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anil_Reddy
Posted On:   Thursday, July 17, 2003 04:02 AM

how to get applet to load files from client downloaded jar?

i have a html file in the jar file thats loaded to the client machine.now how do i read that file through applets?

Re: how to get applet to load files from client downloaded jar?

Posted By:   Laxman_Subramanian  
Posted On:   Wednesday, July 23, 2003 11:02 AM

Use getresourceasstream to read the file in the same Jar file as the applet .

InputStream in = this.class.getResourceAsStream("default.htm");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
About | Sitemap | Contact