Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.blobstore.file_blob_storage module
Summary
In-memory implementation of Blobstore stub storage based on file system.
This module contains an implementation of blob_storage.BlobStorage
that
writes blobs directly to a file system.
Contents
- class google.appengine.api.blobstore.file_blob_storage.FileBlobStorage(storage_directory, app_id)source
-
Bases: google.appengine.api.blobstore.blob_storage.BlobStorage
The storage mechanism that stores blob data on a local disk.
- DeleteBlob(blob_key)source
Deletes blob data.
Deleting an unknown blob will not raise an error.
Parametersblob_key – The blob key of an existing blob that you want to delete.
- OpenBlob(blob_key)source
Opens a blob file for streaming.
Parametersblob_key – The blob key of an existing blob that you want to open.
ReturnsAn open file stream to read the blob.
- StoreBlob(blob_key, blob_stream)source
Stores a blob stream .
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 `google.appengine.api.blobstore.file_blob_storage` module provides an in-memory implementation of Blobstore storage that utilizes the file system."],["`FileBlobStorage` class within this module allows for the storage of blob data directly onto a local disk."],["The module supports operations like deleting blobs via `DeleteBlob`, opening them for reading through `OpenBlob`, and storing new blobs using `StoreBlob`."],["The module's delete blob function `DeleteBlob` does not raise errors if deleting a blob that doesn't exist."]]],[]]