Reference documentation and code samples for the Cloud Datastore Client class Blob.
Represents a Blob value.
Blobs can be used to store binary data in Google Cloud Datastore.
Example:
use Google\Cloud\Datastore\DatastoreClient;
$datastore = new DatastoreClient();
$blob = $datastore->blob(file_get_contents(__DIR__ .'/family-photo.jpg'));
// Get the value of a blob by casting to a string.
echo (string) $blob;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,[]]