{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-python/issues/538","repository_url":"https://api.github.com/repos/Azure/azure-storage-python","labels_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/538/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/538/events","html_url":"https://github.com/Azure/azure-storage-python/issues/538","id":393504834,"node_id":"MDU6SXNzdWUzOTM1MDQ4MzQ=","number":538,"title":"BaseBlobService.get_blob_to_stream returns unusable Blob.content","user":{"login":"enricorotundo","id":4340327,"node_id":"MDQ6VXNlcjQzNDAzMjc=","avatar_url":"https://avatars0.githubusercontent.com/u/4340327?v=4","gravatar_id":"","url":"https://api.github.com/users/enricorotundo","html_url":"https://github.com/enricorotundo","followers_url":"https://api.github.com/users/enricorotundo/followers","following_url":"https://api.github.com/users/enricorotundo/following{/other_user}","gists_url":"https://api.github.com/users/enricorotundo/gists{/gist_id}","starred_url":"https://api.github.com/users/enricorotundo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricorotundo/subscriptions","organizations_url":"https://api.github.com/users/enricorotundo/orgs","repos_url":"https://api.github.com/users/enricorotundo/repos","events_url":"https://api.github.com/users/enricorotundo/events{/privacy}","received_events_url":"https://api.github.com/users/enricorotundo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-21T15:50:41Z","updated_at":"2018-12-21T15:50:41Z","closed_at":null,"author_association":"NONE","body":"### Which service(blob, file, queue) does this issue concern?\r\n\r\nBlob\r\n\r\n\r\n### Which version of the SDK was used? Please provide the output of `pip freeze`.\r\n\r\n```\r\nazure-storage-blob==1.4.0\r\nazure-storage-common==1.4.0\r\nazure-storage-file==1.4.0\r\nazure-storage-nspkg==3.0.0\r\nazure-storage-queue==1.4.0\r\n```\r\n\r\n### What problem was encountered?\r\n\r\n\r\n```python\r\nimport io\r\nfrom azure.storage.blob.baseblobservice import BaseBlobService\r\n\r\nblob_service = BaseBlobService(connection_string=\"...\")\r\nstream = io.BytesIO()\r\nblob_file = blob_service.get_blob_to_stream(\"...\", \"...\", stream=stream)\r\n\r\ntype(blob_file.content)\r\n```\r\nprints `NoneType`\r\n\r\nWhat is the rationale for returning an empty [Blob.content](https://azure-storage.readthedocs.io/ref/azure.storage.blob.models.html#azure.storage.blob.models.Blob) in this case? I should be able to use `Blob.content`, instead I'm required to pass a `stream` object and use that one, which appears inconsistent with the rest of the get_blob_* methods based on `Blob.content` (e.g. `get_blob_to_text`, `get_blob_to_bytes`.\r\n"}}
{"actor":{"display_login":"enricorotundo"}}