Table of Contents

Read Blob as byte array

Reads the contents of an Azure Blob into memory as a byte array. You can compare this to downloading a file. For peformance reasons, prefer using streaming over reading as byte array if possible. Streaming is generally faster and uses less memory, because streaming doesn't require loading the entire blob into memory before you can start working with the data.

img

Note

If you need to read the file multiple times, for example processing its contents and then sending the file somewhere else (such as to an archive), you MUST use the byte array option instead of streaming because the stream can only read once.

Once you have the blob contents, you must load it using a compatible action in order to make use of the data.

For example, an Excel file can be loaded using the Open Excel file as DataReader, Read Excel file as DataTable, or For each row in Excel file actions. Once loaded, you can start working with the data in the Excel file.

Caution

Trying to load a byte array using an incompatible action will fail.

Returns

Byte array

Properties

Name Type Description
Connection Required The Azure Blob container connection. The currently supported options are SAS URI and Connection string + container name.
Dynamic connection Optional A connection dynamically created using the Create Azure Blob container connection action.
Blob name prefix Optional To filter the list of blobs, specify a string for the prefix parameter. Note! The prefix is case sensitive.
Result variable name Required The name of the Flow variable that contains the list of the blob names.