private void SendPrintStream(Stream stream, HttpResponse response)
        {
            int value = 0;

            if (stream != null)
            {
                value = (int)stream.Length;
            }
            byte[] bytes = BitConverter.GetBytes(value);
            foreach (byte value2 in bytes)
            {
                //response.OutputStream.WriteByte(value2);
            }
            if (stream != null)
            {
                stream.Position = 0L;
                ReportDataOperation.StreamToResponse(stream, response);
                //response.Flush();
            }
        }
Example #2
0
 public static void StreamToResponse(Stream data, string mimeType, HttpResponse response)
 {
     ReportDataOperation.SetStreamingHeaders(mimeType, response);
     ReportDataOperation.StreamToResponse(data, response);
 }