Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.blobstore.blob_storage module
Summary
Definition of BlobStorage base class.
Contents
- class google.appengine.api.blobstore.blob_storage.BlobStoragesource
-
Bases: object
Base class for defining how blobs are stored.
This base class merely defines an interface that all stub blob-storage
mechanisms must implement.
- DeleteBlob(blob_key)source
Delete blob data from storage.
Parametersblob_key – Blob-key of existing blob to delete.
- OpenBlob(blob_key)source
Open blob for streaming.
Parametersblob_key – Blob-key of existing blob to open for reading.
ReturnsOpen file stream for reading blob. Caller is responsible for closing file.
- StoreBlob(blob_key, blob_stream)source
Store blob stream.
Implement this method to persist blob data.
Parameters
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-04 UTC."],[[["The `BlobStorage` class serves as a base interface for defining how blobs are stored, requiring all implementations to adhere to its structure."],["The `DeleteBlob` method is responsible for removing blob data from the storage using the provided blob key."],["The `OpenBlob` method allows for streaming access to a blob's content, with the caller responsible for closing the opened file."],["The `StoreBlob` method persists blob data into storage using the provided blob key and a stream of the blob content."]]],[]]