Stay organized with collections
Save and categorize content based on your preferences.
publicclassBlobInfoimplementsSerializable
BlobInfo contains metadata about a blob. This metadata is gathered by
parsing the HTTP headers included in the blob upload.
See Also: RFC 1867 for the specification of HTTP file uploads.
Returns the object name of this Blob, if it is stored in Google Cloud Storage,
in the form /[bucket-name]/[object-name]. Returns null if the Blob is stored
in Blobstorage.
[[["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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eBlobInfo\u003c/code\u003e is a class that stores metadata about a blob, gathered from the HTTP headers during blob uploads.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements the \u003ccode\u003eSerializable\u003c/code\u003e interface and inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBlobInfo\u003c/code\u003e objects can be constructed with parameters like \u003ccode\u003eblobKey\u003c/code\u003e, \u003ccode\u003econtentType\u003c/code\u003e, \u003ccode\u003ecreation\u003c/code\u003e date, \u003ccode\u003efilename\u003c/code\u003e, \u003ccode\u003esize\u003c/code\u003e, and optionally, \u003ccode\u003emd5Hash\u003c/code\u003e and \u003ccode\u003egsObjectName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBlobInfo\u003c/code\u003e contains fields such as \u003ccode\u003eblobKey\u003c/code\u003e, \u003ccode\u003econtentType\u003c/code\u003e, \u003ccode\u003ecreation\u003c/code\u003e, \u003ccode\u003efilename\u003c/code\u003e, \u003ccode\u003egsObjectName\u003c/code\u003e, \u003ccode\u003emd5Hash\u003c/code\u003e, and \u003ccode\u003esize\u003c/code\u003e, which can also be retrieved using getter methods.\u003c/p\u003e\n"],["\u003cp\u003eThe class has methods to retrieve the \u003ccode\u003eBlobKey\u003c/code\u003e of the Blob, the MIME Content-Type, the creation date, the file name, Google Cloud Storage object name, the md5Hash and the size in bytes of the Blob.\u003c/p\u003e\n"]]],[],null,[]]