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; }
private static bool FlushBytesToResponse(object sender,OperateStreamEnventArgs args) { HttpContext.Current.Response.BinaryWrite(args.BytesReaded); HttpContext.Current.Response.OutputStream.Flush(); return true; }