I am using a signed applet (self-signed) to read files from a clients
machine (local file system). Following is the code for buffered reading (the
meat):
String thisLine, ret = "";
try{
BufferedReader myInput = new BufferedReader(new FileReader(fn));
while ((thisLine = myInput.readLine()) != null) {
ret += thisLine + "\n";
}
myInput.close();
}
catch (Exception e) {
ret = "Cannot load, exception!";
}
When I read a file <= 512KB, it runs fine/as expected. Now, when I read a
file, say for example 1024KB in size, I expect the application to take twice
as much time (than 512KB file) and read the file, but instead the
applet/browser hangs. As a matter of fact I am not able to read files >
512KB.
So, is there a limit on file size (from local file system) when reading from
an applet, or is it to do with the way I am reading it?
Any help, suggestions or comments would be highly appreciated.
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden