A link to code sample

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

I want to publish some pdf file in my asp.net application but I don't wnat
to publish them directly. I would like to use an intermidiate aspx file like
http://domain.com/GetFile.aspx?ID=123 and GetFile.aspx returns the file byte
stream.

The GetFile.aspx must be very optimised and fast, that is why I don't want
to develop it myself.

Could anyone refer me a link shows me a relible high performance code sample
for file access?

Thanks,
Ali
 
Hi A.M.

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi Ali,

As for writing binary format file stream into response stream(send to
client browser), generally ,we have serveral means:
1.Response.WriteFile #provide the file's physical path

2. Use the Response.OutputStream to write binary stream which can be
retrieved from both FILE I/O or database column

Here is some kb articles which provide the standard steps:

#How To Write Binary Files to the Browser Using ASP.NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;306654
http://support.microsoft.com/default.aspx?scid=kb;en-us;307603

#HOW TO: Read and Write a File to and from a BLOB Column by Using Chunking
in ADO.NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;317043
http://support.microsoft.com/default.aspx?scid=kb;en-us;317034

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top