pythongoogle-app-engineblobstore

updating and saving an existing blob/file in blobstore?


The docs are pretty clear about how to create/get a blob, but I can't find any reference to how to modify and save an existing blob.

Is this actually possible given the BlobInfo object?

https://developers.google.com/appengine/docs/python/blobstore/overview#Writing_Files_to_the_Blobstore


Solution

  • You cannot modify an existing blob.

    You can use the Files API to read from an existing blob and write to a new blob.

    If you don't want to use the Files API to read the existing blob then you can use a BlobReader.