Last active
May 29, 2016 19:21
-
-
Save buchizo/2f8ac640a21cd78920eccbfd7e0d267d to your computer and use it in GitHub Desktop.
Blob Bindings using Stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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