Archive for the ‘file streaming’ Category
File streaming in .NET
Hello All
Today i will focus on simple file steaming in .NET which I have to implement it in one of my project.Though it’s not optimize but its OK for serve small purpose.
In the project I have to read a PDF file from the server and with FileStream and Flash it with Response to the client side.
the code is as bellow.
private void generateRequestedPDF(){ try { string file = Path.GetFileName(Request.QueryString["RefID"]);// get file name from query...