Skip to content

Support blob streams #99

Open
Open
@adamstoffel

Description

@adamstoffel

The Blob Trigger binding for NodeJS functions always binds data as a Buffer even if 'dataType' is set to 'stream' or 'string'.

Repro steps

  1. Create a node-based function using the blob trigger
  2. Set "dataType" to "stream" in function.json:
{
  "bindings": [
    {
      "name": "fileBlob",
      "type": "blobTrigger",
      "direction": "in",
      "path": "container/{fileName}.csv",
      "connection": "AzureWebJobsStorage",
      "dataType": "stream"
    }
  ],
  "scriptFile": "../dist/myFunction/index.js"
}

Expected behavior

fileBlob input parameter should be some kind of Stream type

Actual behavior

fileBlob input parameter is a Buffer

Known workarounds

None

Related information

Functions runtime ~3
Node ~14

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions