Returns the contents of the blob as a String.
Usage | Returns | Blob.string(encoding) | String |
Argument | Type | Details | this: blob | Blob | |
encoding | String, default: null | |
Examples
Code Editor (JavaScript)
// Parse a SpatioTemporal Asset Catalog (STAC) entry from Google Cloud
// Storage (GCS). This is a non-traditional use of ee.Blob.
var url = 'gs://earthengine-stac/0.8.1/catalog/NOAA_GOES_16_MCMIPF.json';
var blob = ee.Blob(url);
var entry = ee.Dictionary(blob.string().decodeJSON());
print(entry.get('title')); // GOES-16 MCMIPF Series ABI Level 2 Cloud...
print(entry.get('description')); // [GOES](https://www.goes.noaa.gov)...