Exemplo n.º 1
0
 private static bool BlocklyWriteToFileStream(object sender, OperateStreamEnventArgs args)
 {
     FileStream fileStream= (FileStream)args.CallBackObject;
     fileStream.Write(args.BytesReaded,0,args.BytesReaded.Length);
     fileStream.Flush();
     return true;
 }
Exemplo n.º 2
0
 private static bool FlushBytesToResponse(object sender,OperateStreamEnventArgs args)
 {
     HttpContext.Current.Response.BinaryWrite(args.BytesReaded);
     HttpContext.Current.Response.OutputStream.Flush();
     return true;
 }