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
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,
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
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