Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
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 2025-06-16 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 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egoogle.appengine.api.blobstore.file_blob_storage\u003c/code\u003e module provides an in-memory implementation of Blobstore storage that utilizes the file system.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFileBlobStorage\u003c/code\u003e class within this module allows for the storage of blob data directly onto a local disk.\u003c/p\u003e\n"],["\u003cp\u003eThe module supports operations like deleting blobs via \u003ccode\u003eDeleteBlob\u003c/code\u003e, opening them for reading through \u003ccode\u003eOpenBlob\u003c/code\u003e, and storing new blobs using \u003ccode\u003eStoreBlob\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe module's delete blob function \u003ccode\u003eDeleteBlob\u003c/code\u003e does not raise errors if deleting a blob that doesn't exist.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.blobstore.file_blob_storage module\n=======================================================\n\nSummary\n-------\n\nIn-memory implementation of Blobstore stub storage based on file system.\n\nThis module contains an implementation of `blob_storage.BlobStorage` that\nwrites blobs directly to a file system.\n\nContents\n--------\n\n*class* google.appengine.api.blobstore.file_blob_storage.FileBlobStorage(storage_directory, app_id)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/blobstore/file_blob_storage#FileBlobStorage)\n\n: Bases: [google.appengine.api.blobstore.blob_storage.BlobStorage](/appengine/docs/legacy/standard/python/refdocs/google.appengine.api.blobstore.blob_storage#google.appengine.api.blobstore.blob_storage.BlobStorage)\n\n The storage mechanism that stores blob data on a local disk. \n\n DeleteBlob(blob_key)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/blobstore/file_blob_storage#FileBlobStorage.DeleteBlob)\n\n : Deletes blob data.\n\n Deleting an unknown blob will not raise an error.\n Parameters\n\n blob_key -- The blob key of an existing blob that you want to delete. \n\n OpenBlob(blob_key)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/blobstore/file_blob_storage#FileBlobStorage.OpenBlob)\n\n : Opens a blob file for streaming.\n\n Parameters\n\n blob_key -- The blob key of an existing blob that you want to open.\n Returns\n\n An open file stream to read the blob. \n\n StoreBlob(blob_key, blob_stream)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/blobstore/file_blob_storage#FileBlobStorage.StoreBlob)\n\n : Stores a blob stream .\n\n Parameters\n\n - blob_key -- The blob key of the blob that you want to store.\n\n - blob_stream -- A stream or a stream-like object that will generate blob\n content."]]