dcsimg
How do I use reading and writing to a file on the server from an Applet originating from the server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Meenu_Goswami
Posted On:   Monday, April 16, 2001 02:51 PM

I tried writing to a file on the server where the applet originated from. It does not write where as reading is successful. How do I perform simple write operation to a file on the server? I do not want to use socket connections because of firewall.

Part of my code:
URL url = new URL("http://ABCCompany/file.txt");
URLConnection urlConnection = url.openConnection();
DataOutputStream output =
new DataOutputStream (
new BufferedOutputStream (urlConnection.getOutputStream()));
output.writeBytes("hello");
output.flush();
output.close();

Re: How do I use reading and writing to a file on the server from an Applet originating from the server

Posted By:   John_Zukowski  
Posted On:   Monday, April 16, 2001 10:41 PM

As already answered in the FAQ, there must be something listening on the server. How you are trying to do this is not supported.
About | Sitemap | Contact