Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.19 KB

functions-bindings-blob-storage-trigger.md

File metadata and controls

29 lines (24 loc) · 1.19 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 triggering blob:

  • Stream
  • TextReader
  • string
  • Byte[]
  • 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 later in this article.