More expensive, crap-tacular method I use.  

 

No image can be more than 4MB.

Byte String  = Image

Substring the image in 1MB chunks

Write 4 chunks to Data Store

 

On request read Chunks 1-4 append and out.

 

(this is clearly not code but both the python and java people can read the
logic)

 

This method has the advantage of also working with Mem-Cache if you are
doing a tiered /read/write  system based on content popularity.

 

From: google-appengine@googlegroups.com
[mailto:google-appengine@googlegroups.com] On Behalf Of Seth Nickell
Sent: Wednesday, April 13, 2011 11:26 AM
To: google-appengine@googlegroups.com
Subject: [google-appengine] images.get_serving_url() getting a
ImagesServiceError.UNSPECIFIED_ERROR on real server

 

I'm trying to call images.get_serving_url() on a blob I just created using
the (experimental) blobstore write features. Its raising an anonymous error,
and was 10 hours ago too. The underlying API error is
ImagesServiceError.UNSPECIFIED_ERROR. Everything works great on the local
dev server.

 

Here's what I'm doing:

file_name = files.blobstore.create(mime_type="images/jpeg", 
 
_blobinfo_uploaded_filename=local_filename)
        
with files.open(file_name, 'a') as f:
  f.write(my_image_blob)
files.finalize(file_name)
blob_key = files.blobstore.get_blob_key(file_name)
serving_url = my_get_serving_url(blob_key) # ERROR

 

-Seth 

 

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

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

Reply via email to