Streaming large files over network

A

A.M-SG

Hi,



I have a ASP.NET aspx file that needs to pass large images from a network
storage to client browser. The requirement is that users cannot have access
to the network share. The aspx file must be the only method that users
receive image files.



Essentially, the aspx file is an intermediate between client browser and a
network share.



I don't want to load all file in my web server memory as a byte[] array and
then stream it to the browser.



Is there any way (or streaming techniques) that I can stream large file
directly from storage to the browser?



Any help would be appreciated,

Alan
 
S

Steven Cheng[MSFT]

Thanks for Brians's input,

Hi Alan,

For your scenario, I also think using the Stream class to open the
filestream and then use read method to flush a small bytes buffer to client
constantly is a reasonable means. You can refer to the articles Brians has
mentioned.

Thanks,

Steven Cheng
Microsoft Online Support

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


--------------------
| Thread-Topic: Streaming large files over network
| thread-index: AcXb/KtuaEmfW60OQPKZ/0iJFs1lhA==
| X-WBNR-Posting-Host: 70.56.84.250
| From: =?Utf-8?B?YnJpYW5zW01DU0Rd?= <[email protected]>
| References: <OG2thq#[email protected]>
| Subject: RE: Streaming large files over network
| Date: Fri, 28 Oct 2005 13:17:50 -0700
| Lines: 46
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:134623
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hello Alan,
|
| Tracking and Resuming Large File Downloads in ASP.NET -
| http://www.devx.com/dotnet/Article/22533. Gives a pretty thorough
treatment
| to the subject.
|
|
| --
| brians
| http://www.limbertech.com
|
|
| "A.M-SG" wrote:
|
| > Hi,
| >
| >
| >
| > I have a ASP.NET aspx file that needs to pass large images from a
network
| > storage to client browser. The requirement is that users cannot have
access
| > to the network share. The aspx file must be the only method that users
| > receive image files.
| >
| >
| >
| > Essentially, the aspx file is an intermediate between client browser
and a
| > network share.
| >
| >
| >
| > I don't want to load all file in my web server memory as a byte[] array
and
| > then stream it to the browser.
| >
| >
| >
| > Is there any way (or streaming techniques) that I can stream large file
| > directly from storage to the browser?
| >
| >
| >
| > Any help would be appreciated,
| >
| > Alan
| >
| >
| >
|
 
S

Steven Cheng[MSFT]

Hi Alan,

How are you doing on this issue, does the information posted in the former
message helps a little? If there're anything else we can help, please do
feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 39605910
| References: <OG2thq#[email protected]>
<[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 31 Oct 2005 02:27:56 GMT
| Subject: RE: Streaming large files over network
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <GoHZ#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 66
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:134939
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Thanks for Brians's input,
|
| Hi Alan,
|
| For your scenario, I also think using the Stream class to open the
| filestream and then use read method to flush a small bytes buffer to
client
| constantly is a reasonable means. You can refer to the articles Brians
has
| mentioned.
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | Thread-Topic: Streaming large files over network
| | thread-index: AcXb/KtuaEmfW60OQPKZ/0iJFs1lhA==
| | X-WBNR-Posting-Host: 70.56.84.250
| | From: =?Utf-8?B?YnJpYW5zW01DU0Rd?=
<[email protected]>
| | References: <OG2thq#[email protected]>
| | Subject: RE: Streaming large files over network
| | Date: Fri, 28 Oct 2005 13:17:50 -0700
| | Lines: 46
| | Message-ID: <[email protected]>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:134623
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hello Alan,
| |
| | Tracking and Resuming Large File Downloads in ASP.NET -
| | http://www.devx.com/dotnet/Article/22533. Gives a pretty thorough
| treatment
| | to the subject.
| |
| |
| | --
| | brians
| | http://www.limbertech.com
| |
| |
| | "A.M-SG" wrote:
| |
| | > Hi,
| | >
| | >
| | >
| | > I have a ASP.NET aspx file that needs to pass large images from a
| network
| | > storage to client browser. The requirement is that users cannot have
| access
| | > to the network share. The aspx file must be the only method that
users
| | > receive image files.
| | >
| | >
| | >
| | > Essentially, the aspx file is an intermediate between client browser
| and a
| | > network share.
| | >
| | >
| | >
| | > I don't want to load all file in my web server memory as a byte[]
array
| and
| | > then stream it to the browser.
| | >
| | >
| | >
| | > Is there any way (or streaming techniques) that I can stream large
file
| | > directly from storage to the browser?
| | >
| | >
| | >
| | > Any help would be appreciated,
| | >
| | > Alan
| | >
| | >
| | >
| |
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top