[VARIABLE "my_blob_name"]
179737
public Blob updateBlob(String bucketName, String blobName) {
    // [START updateBlob]
    Map<String, String> newMetadata = new HashMap<>();
    newMetadata.put("key", "value");
    storage.update(BlobInfo.newBuilder(bucketName, blobName).setMetadata(null).build());
    Blob blob =
        storage.update(BlobInfo.newBuilder(bucketName, blobName).setMetadata(newMetadata).build());
    // [END updateBlob]
    return blob;
  }
223985
public List<Blob> batchUpdate(String bucketName, String blobName1, String blobName2) {
    // [START batchUpdate]
    Blob firstBlob = storage.get(bucketName, blobName1);
    Blob secondBlob = storage.get(bucketName, blobName2);
    List<Blob> updatedBlobs =
        storage.update(
            firstBlob.toBuilder().setContentType("text/plain").build(),
            secondBlob.toBuilder().setContentType("text/plain").build());
    // [END batchUpdate]
    return updatedBlobs;
  }
1267793
public function streamBlob($container, $blobName, $params = [])
    {
        try {
            $this->checkConnection();
            ///** @var GetBlobResult $blob */
            //$blob = $this->blobConn->getBlob($container, $blobName);
            $props = $this->blobConn->getBlobProperties($container, $blobName)->getProperties();
            $size = $props->getContentLength();
            $chunk = \Config::get('df.file_chunk_size');
            $index = 0;

            header('Last-Modified: ' . gmdate(static::TIMESTAMP_FORMAT, $props->getLastModified()->getTimestamp()));
            header('Content-Type: ' . $props->getContentType());
            header('Content-Transfer-Encoding: ' . $props->getContentEncoding());
            header('Content-Length:' . $size);

            $disposition =
                (isset($params['disposition']) && !empty($params['disposition'])) ? $params['disposition'] : 'inline';

            header("Content-Disposition: $disposition; filename=\"$blobName\";");
            ob_clean();

            while ($index < $size) {
                $option = new GetBlobOptions();
                $option->setRangeStart($index);
                $option->setRangeEnd($index + $chunk - 1);
                $blob = $this->blobConn->getBlob($container, $blobName, $option);
                $stream = $blob->getContentStream();
                $length = $blob->getProperties()->getContentLength();
                $index += $length;
                flush();
                fpassthru($stream);
            }
        } catch (\Exception $ex) {
            if ($ex instanceof ServiceException) {
                $code = $ex->getCode();
                $status_header = "HTTP/1.1 $code";
                header($status_header);
                header('Content-Type: text/html');
                echo 'Failed to stream/download file. File ' . $blobName . ' was not found. ' . $ex->getMessage();
            } else {
                throw new DfException('Failed to stream blob: ' . $ex->getMessage());
            }
        }
    }
154669
@Override
    public Blob getBlob(@NonNull String key) {
        if (key == null) { throw new IllegalArgumentException("key cannot be null."); }

        final int index = indexForColumnName(key);
        return index >= 0 ? getBlob(index) : null;
    }
365237
public List<Blob> batchUpdateIterable(String bucketName, String blobName1, String blobName2) {
    // [START batchUpdateIterable]
    Blob firstBlob = storage.get(bucketName, blobName1);
    Blob secondBlob = storage.get(bucketName, blobName2);
    List<BlobInfo> blobs = new LinkedList<>();
    blobs.add(firstBlob.toBuilder().setContentType("text/plain").build());
    blobs.add(secondBlob.toBuilder().setContentType("text/plain").build());
    List<Blob> updatedBlobs = storage.update(blobs);
    // [END batchUpdateIterable]
    return updatedBlobs;
  }
409956
def fetch_blob(cls, username, password, multifactor_password=None, client_id=None):
        """"""
        session = fetcher.login(username, password, multifactor_password, client_id)
        blob = fetcher.fetch(session)
        fetcher.logout(session)

        return blob
705658
@Override
  protected String quoteFilename(final StringBuffer buf, final String filename) {
    buf.setLength(0);
    BorlandProcessor.quoteFile(buf, filename);
    return buf.toString();
  }
274267
def _get_blob(self):
        """"""
        if not self.__blob:
            self.__blob = self.repo.get_object(self.id)
        return self.__blob
1270797
public Blob copyToBucket(String bucketName) {
    // [START copyToBucket]
    CopyWriter copyWriter = blob.copyTo(bucketName);
    Blob copiedBlob = copyWriter.getResult();
    // [END copyToBucket]
    return copiedBlob;
  }
947500
function(dataUri, fileName) {

            var blob = joint.util.dataUriToBlob(dataUri);
            joint.util.downloadBlob(blob, fileName);
        }
697326
private static String encodeBlob(String encodingType, String blobName) {
        if (encodingType != null && encodingType.equals("url")) {
            return urlEscaper.escape(blobName);
        } else {
            return blobName;
        }
    }
648111
public List<Blob> batchGetIterable(String bucketName, String blobName1, String blobName2) {
    // [START batchGetIterable]
    List<BlobId> blobIds = new LinkedList<>();
    blobIds.add(BlobId.of(bucketName, blobName1));
    blobIds.add(BlobId.of(bucketName, blobName2));
    List<Blob> blobs = storage.get(blobIds);
    // [END batchGetIterable]
    return blobs;
  }
681903
public void readerFromId(String bucketName, String blobName) throws IOException {
    // [START readerFromId]
    BlobId blobId = BlobId.of(bucketName, blobName);
    try (ReadChannel reader = storage.reader(blobId)) {
      ByteBuffer bytes = ByteBuffer.allocate(64 * 1024);
      while (reader.read(bytes) > 0) {
        bytes.flip();
        // do something with bytes
        bytes.clear();
      }
    }
    // [END readerFromId]
  }
447609
@SuppressWarnings("unchecked")
	@Override
	public T blobParamIfAbsent(final String paramName, final InputStream value) {
		context().blobParamIfAbsent(paramName, value);
		return (T) this;
	}
240502
function uriToBlob(uri, done) {
  const xhr = new XMLHttpRequest();
  xhr.responseType = "blob";
  xhr.onload = () => {
    const blob = xhr.response;
    done(null, blob);
  };
  xhr.onerror = (err) => {
    done(err);
  };
  xhr.open("GET", uri);
  xhr.send();
}
404834
public Blob createBlobFromInputStream(String blobName) {
    // [START createBlobFromInputStream]
    InputStream content = new ByteArrayInputStream("Hello, World!".getBytes(UTF_8));
    Blob blob = bucket.create(blobName, content);
    // [END createBlobFromInputStream]
    return blob;
  }
1123182
@NonNull
    @Override
    public MutableArray setBlob(int index, Blob value) {
        return setValue(index, value);
    }