Hi,

I am trying to read some 5MB XML files I have saved into the
Blobstorevia the new APIs introduced in Version 1.4.3.
The problem is that the read is so slow that I get a
DeadlineExceededException :(

I'm folowing the example provided in the docs here:
http://code.google.com/appengine/docs/java/blobstore/overview.html#Writing_Files_to_the_Blobstore

Here is my code:

AppEngineFile aeFile = fileService.getBlobFile(key);
FileReadChannel readChannel = fileService.openReadChannel(aeFile,
false);
BufferedReader reader = new
BufferedReader(Channels.newReader(readChannel, "UTF8"));

StringBuffer sBuffer = new StringBuffer();
String line = null;
while ((line = reader.readLine()) != null) sBuffer.append(line);

So the question is: What is a fast way to read large files from the
Blobstore?

Many thanks for the help !
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to