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
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;
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;
Try uploading this image:
private String getFile() {
String s = ; // data:image/png;base64,
s =
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
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
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
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
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
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
10 matches
Mail list logo