示例#1
0
 static void Download(BlobFolder folder, string inputname, string outputname)
 {
     using (var input = folder.OpenRead(inputname))
     {
         using (var output = File.OpenWrite(outputname))
         {
             input.CopyTo(output);
         }
     }
 }
示例#2
0
        public override PipeOutput Run(PipeInput input)
        {
            string blobName = input.GetString();

            using (var stream = _folder.OpenRead(blobName))
                using (var reader = new StreamReader(stream))
                {
                    string content = reader.ReadToEnd();

                    content = CustomDou.AddName(content, blobName);

                    return(PipeOutput.ConvertBase64(content));
                }
        }