Problem in Opening Page in HighSlide
-
I m having Problem in opening PDF Document written on a page in Highslide. Although this page works in case of Image but when I write PDF, it completes the process but does not show the page where PDF is Written. there is no error in PDF method, it is working fine. Below is the link through which i open highslide. Click here to View File; //Here is the COde for Writing the PDF on page FileStream MyFileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); long FileSize = 0; FileSize = MyFileStream.Length; byte[] Buffer = new byte[(int)FileSize + 1]; MyFileStream.Read(Buffer, 0, (int)FileSize); MyFileStream.Close(); Response.ContentType = "application/pdf"; Response.OutputStream.Write(Buffer, 0, int.Parse(FileSize.ToString())); Response.Flush(); Response.Close(); Kindly Help me in this Issue. Ali Raza