You can use either of the following methods to upload data to a block blob: The following example uploads a block blob from a BinaryData object. You can open a stream in Blob Storage and write to it.