Blob contains an array of bytes. This byte array can be no bigger than 1MB. To store
files, particularly files larger than this 1MB limit, look at the Blobstore API.
Construct a new Blob with the specified bytes. Since Blobs can be quite large
we do not perform a defensive copy of the provided byte array. It is the programmer's
responsibility to avoid making changes to this array once the Blob has been
constructed.
Parameter
Name
Description
bytes
byte[]
Methods
equals(@Nullable Object object)
publicbooleanequals(@NullableObjectobject)
Two Blob objects are considered equal if their contained bytes match exactly.
[[["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-03-05 UTC."],[[["`Blob` is a class that stores an array of bytes, and it implements the `Serializable` interface."],["The maximum size of the byte array within a `Blob` instance is limited to 1MB; the Blobstore API should be used for larger files."],["A new `Blob` object is created by passing a byte array to its constructor, which does not make a copy of the array, so modification of the original array after creating the Blob should be avoided."],["Two `Blob` objects are equal if and only if they have the same bytes."],["The `Blob` class provides methods for retrieving the stored bytes (`getBytes()`), comparing two `Blob` instances for equality (`equals()`), obtaining a hash code (`hashCode()`), and getting a string representation of the `Blob` object (`toString()`)."]]],[]]