473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

A link to code sample

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
Nov 18 '05 #1
3 1086
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."

Nov 18 '05 #2
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...b;en-us;306654
http://support.microsoft.com/default...b;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...b;en-us;317043
http://support.microsoft.com/default...b;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

Nov 18 '05 #3
A.M
That is exactly what I was looking for.

Thank you very much for help.

Alan
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Nu**************@cpmsftngxa10.phx.gbl...
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...b;en-us;306654
http://support.microsoft.com/default...b;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...b;en-us;317043
http://support.microsoft.com/default...b;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

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jean-Marc Molina | last post by:
Hello, I'm trying to generate a RSS newsfeed using the DOM XML functions, but you already know that if you read my previous post . I'm able to create rss, channel and title elements but not a...
7
by: Bruce Lawrence | last post by:
I have an Access97 database and I would like to link a SQL table to it without having to create a manual ODBC connection on every system that needs to use this database. This is what I have so...
8
by: simon | last post by:
On code behind file: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Not Page.IsPostBack Then Dim ctrl As New LinkButton ctrl.ID =...
1
by: brian | last post by:
'visual studio 2002 pro 1.0 framwork' I am creating dynamic Link buttons on my intranet site and assigning a click_event to them. A user clicks a link and I call the method to recreate the...
2
by: JenHu | last post by:
hi, I have a datagrid in my asp.net application, I am using vb.net language. I want to have my last column as a link column, link to text file. The link path is "c:\Temp\" & F_File_Name, which...
8
by: Steve | last post by:
Hi; I had a big link checking job to do and it has been years since I have done anything like that so I found a test page to use that I knew had bad links on it( a friends site ) and I decided...
9
by: Leslie Coover | last post by:
http://finance.yahoo.com/ offers a wide range of financial data. Would anyone have (or know where I can get) a sample of code that
7
by: ApexData | last post by:
Hello I currently Link the FE/BE using the LinkTables Option and the Linked Table Manager. Any time I need to move the BE to another location, I have to go through this process over again. I...
1
by: yogarajan | last post by:
Hi friend am new in asp.net i have one problem pls help me herewith i have attached my code //my code start here using System; using System.Data;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.