def StoreBlob(self, blob_key, blob_stream):
    block_count = 0
    blob_key_object = self._BlobKey(blob_key)
    while True:
      block = blob_stream.read(blobstore.MAX_BLOB_FETCH_SIZE)
      if not block:
        break
      entity = datastore.Entity(_BLOB_CHUNK_KIND_, 
                                name=str(blob_key_object) + "__" + str(block_count), 
                                namespace='')
      entity.update({'block': datastore_types.Blob(block)})
      datastore.Put(entity)
      block_count += 1
Custom renderer for user profile activity stream
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/blobstore/datastore_blob_storage.py/DatastoreBlobStorage.StoreBlob--crossover with--dataset/ETHPy150Open python/raspberryio/raspberryio/userprofile/views.py/profile_actions