Re: File or class transfer over tcpip

1999-08-17 Thread peter pilgrim
This is not just an RMI / FTP problem. People have got in trouble with `InputStream.available()' when loading GIF images in Applets. Instead use a `ByteArrayOutputStream' to read the data, buffer size by buffer size then get the data by calling `getBytes()'. [EMAIL PROTECTED] wrote: > Robert Co

Re: File or class transfer over tcpip

1999-08-03 Thread Alexander Davydenko
Robert Covell wrote: > > System.out.println("Getting file: " + loc); > try > { > DataInputStream di = new DataInputStream(new > FileInputStream(new File(loc))); > int avail = di.available(); i think it must return 0,

Re: File or class transfer over tcpip

1999-08-03 Thread Dustin Lang
Hi, > needed. It works like a charm but, the typical but word my classes when > used by the JVM either through security exceptions or are unreadable. To > transfer the class file we are using the following: [snip] > DataInputStream di = new DataInputStream(new > FileInputStream

File or class transfer over tcpip

1999-08-03 Thread Robert Covell
I am in the mist of developing an RMI Update utility for clients. Like most updaters they would download a small 30k(+-) java application that would talk to an RMI server and decide what files (.class) the client needed. It works like a charm but, the typical but word my classes when used by the