I am using the Azure PHP SDK to download a blob into a local file. I am using the following code but struggling to produce the actual file on disk. How can indicate where to download the file (folder)?
Is there anything wrong with this code?
Thanks
$blobfile = "123.vox";
$blobRestProxy = ServicesBuilder::getInstance()->createBlobService($connectionString);
$blob = $blobRestProxy->getBlob("containerName", $blobfile);
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$blobfile\"");
fpassthru($blob->getContentStream());