public void WriteBodyData(byte[] data) { if (ContentType == null) { ContentType = "application/octet-stream"; } SetHeaders(); response.WriteBodyData(data); response.FlushBodyStream(); }