Closed koehnlein closed 2 years ago
The original method createBlockBlob() allows the content to be resource or StreamInterface https://github.com/Azure/azure-storage-blob-php/blob/master/src/Blob/Internal/IBlob.php#L493
createBlockBlob()
resource
StreamInterface
When changing your code from file_get_contents() to fopen(), PHP does not need to read the full file into memory. With this simple change, I could transfer much bigger files than before.
file_get_contents()
fopen()
Thank you :)
The original method
createBlockBlob()
allows the content to beresource
orStreamInterface
https://github.com/Azure/azure-storage-blob-php/blob/master/src/Blob/Internal/IBlob.php#L493When changing your code from
file_get_contents()
tofopen()
, PHP does not need to read the full file into memory. With this simple change, I could transfer much bigger files than before.