Java plugin Firefox Vs Java Plugin IE

Hi all,

I'm experimenting a strrange difference between java plugin IE and java plugin Firefox.

I have an applet which reads a file from a server of mine.

This is my code:

.....

buffer = new byte[lengthOfTask]; //

instream = url_image.getInputStream();

while(((numBytesRead = instream.read(buffer)) != -1)) {

tempBuffer.write(buffer, 0, numBytesRead);

current += numBytesRead;

cicli++;

}

....

At the end I print the number cicli.

Well, for a file of 2MB (= lengthOfTask), the applet in IE6 executes 246 reads, while the applet in Firefox 1.5 executes 65 reads!!!

How can I get the same numebr of reads, with the max speed?

Why thi difference?

Thanks for the support

Marco

[788 byte] By [spinmara] at [2007-10-2 20:18:12]
# 1
Re: Java plugin Firefox Vs Java Plugin IE
moiraqwa at 2007-7-13 23:00:44 > top of Java-index,Desktop,Deploying...
# 2
Java plugin Firefox Vs Java Plugin IE
moiraqwa at 2007-7-13 23:00:44 > top of Java-index,Desktop,Deploying...
# 3
Java plugin Firefox Vs Java Plugin IE
moiraqwa at 2007-7-13 23:00:44 > top of Java-index,Desktop,Deploying...