Skip to content

Instantly share code, notes, and snippets.

@buchizo
Last active May 29, 2016 19:21
Show Gist options
  • Save buchizo/2f8ac640a21cd78920eccbfd7e0d267d to your computer and use it in GitHub Desktop.
Save buchizo/2f8ac640a21cd78920eccbfd7e0d267d to your computer and use it in GitHub Desktop.
Blob Bindings using Stream
{
"bindings": [
{
"name": "myBlob",
"type": "blobTrigger",
"direction": "in",
"path": "incontainer/{name}",
"connection": "buchifunctions_STORAGE"
},
{
"type": "blob",
"name": "outputBlob",
"path": "outcontainer/{name}",
"connection": "buchifunctions_STORAGE",
"direction": "out"
}
],
"disabled": false
}
using System;
public static void Run(Stream myBlob, Stream outputBlob, TraceWriter log)
{
using(var sw = new StreamWriter(outputBlob))
{
myBlob.CopyTo(outputBlob);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment