Skip to content

Files

Latest commit

Feb 13, 2020
1c9b6a4 · Feb 13, 2020

History

History
30 lines (25 loc) · 1.23 KB

functions-bindings-blob-storage-trigger.md

File metadata and controls

30 lines (25 loc) · 1.23 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[]
  • A POCO serializable as JSON
  • 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, Byte[], or POCO 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.