Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.24 KB

functions-bindings-blob-storage-input-usage.md

File metadata and controls

31 lines (26 loc) · 1.24 KB
title description services author manager ms.service ms.topic ms.date ms.author ms.custom
include file
include file
functions
craigshoemaker
gwallace
azure-functions
include
08/02/2019
cshoe
include file

You can use the following parameter types for the blob input binding:

  • Stream
  • TextReader
  • string
  • Byte[]
  • CloudBlobContainer
  • CloudBlobDirectory
  • ICloudBlob1
  • CloudBlockBlob1
  • CloudPageBlob1
  • CloudAppendBlob1

1 Requires "inout" binding direction in function.json or FileAccess.ReadWrite in a C# class library.

If you try to bind to one of the Storage SDK types and get an error message, make sure that you have a reference to the correct Storage SDK version.

Binding to string or Byte[] is only recommended if the blob size is small, as the entire blob contents are loaded into memory. Generally, it is preferable to use a Stream or CloudBlockBlob type. For more information, see Concurrency and memory usage earlier in this article.