Skip to content

Commit d0d431d

Browse files
Merge pull request #222750 from pauljewellmsft/pauljewell-js-download
Add detail for JS in the browser
2 parents 6e7a4bc + 14258f8 commit d0d431d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/storage/blobs/storage-blob-download-javascript.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function downloadBlobAsStream(containerClient, blobName, writableStream) {
5858

5959
## Download to a string
6060

61-
The following example downloads a blob to a string with [BlobClient.download](/javascript/api/@azure/storage-blob/blobclient#@azure-storage-blob-blobclient-download) method.
61+
The following Node.js example downloads a blob to a string with [BlobClient.download](/javascript/api/@azure/storage-blob/blobclient#@azure-storage-blob-blobclient-download) method. In Node.js, blob data returns in a `readableStreamBody`.
6262

6363
```javascript
6464

@@ -86,6 +86,8 @@ async function streamToBuffer(readableStream) {
8686
}
8787
```
8888

89+
If you're working with JavaScript in the browser, blob data returns in a promise [blobBody](/javascript/api/@azure/storage-blob/blobdownloadresponseparsed#@azure-storage-blob-blobdownloadresponseparsed-blobbody). To learn more, see the example usage for browsers at [BlobClient.download](/javascript/api/@azure/storage-blob/blobclient#@azure-storage-blob-blobclient-download).
90+
8991
## See also
9092

9193
- [Get started with Azure Blob Storage and JavaScript](storage-blob-javascript-get-started.md)

0 commit comments

Comments
 (0)