/** * Create a blob * * @param Blob $blob The blob we'll be posting * * @return string The blob id */ public function sendBlob(Blob $blob) { $headers = array(); if ($blob->getType() != null) { $headers['Content-Type'] = $blob->getType(); } $response = $this->transport->request('POST', $this->baseUrl . 'blobs', $blob->getContent(), $headers); return str_replace('/blobs/', '', $response->getBody()); }