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

