I have the bytes of a report in pdf but I just found how to download it.
byte[] bytes = Relatorio.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ContentType = "PDF";
response.AddHeader("Content-Disposition", string.Format("attachment; filename={0}", "PDF"));
response.OutputStream.Write(bytes, 0, bytes.Length);
response.End();
I do not want to download, I want the bytes to be opened in a new tab.