[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-05-06 Thread Brandon Donnelson
Wahoo. I'm getting really good results chunking base64 over RPC calls into a entity. After the chunks are all sent, I recombine the chunks and decode into bytes for save the file to blobstore. I am having so much more control with chunking, I'm starting to dig it. :) Brandon Donnelson

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-04-22 Thread branflake2267
Trying the file channel reader: More here - http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload?ts=1303485150updated=DemoGAEMultiFileBlobUpload private byte[] getImageBytes_v2(BlobData blobData) { if (blobData == null || blobData.getKey() == null) { return null;

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-29 Thread branflake2267
My work around to fetch data even when I don't know the exact filesize or ending EOF. private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey = new BlobKey(blobData.getKey()); if (blobKey == null) { return null;

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
Try uploading this image: private String getFile() { String s = ; // data:image/png;base64, s =

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
BlobInfo Reports 8472 bytes and it should be 6353 bytes. Which is approximately 137% (6183 bytes) smaller, which gives me the impression that headers were not account for in the calculation. -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
Here is the image that was uploaded on the dev side. This also happens on the production side. -- 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 google-appengine-java@googlegroups.com. To

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
http://code.google.com/p/googleappengine/issues/detail?id=4265 - Related issue -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
This is why I started this post. I can't iterate the blobdata or fetch the blob data for image transformation because I can't figure out the correct length of the blob. private byte[] getImageBytes(BlobData blobData) { if (blobData == null) { return null; } BlobKey blobKey

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
I noticed a fetchdata error b/c the fetchdata index is based on zero ordinal long limit = offset + chunkSize - 1; if (filesize limit) { limit = filesize - 1; // adding a minus 1 } -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: Uploading a file to the blobstore in Base64 gives wrong filesize in blobinfo. Any work arounds?

2011-03-28 Thread branflake2267
My limit doesn't solve the base64 size. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to