By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,078 Members | 2,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,078 IT Pros & Developers. It's quick & easy.

Streaming large files over network

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

Nov 19 '05 #2

P: n/a
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?= <br********@discussions.microsoft.com>
| References: <OG**************@TK2MSFTNGP09.phx.gbl>
| Subject: RE: Streaming large files over network
| Date: Fri, 28 Oct 2005 13:17:50 -0700
| Lines: 46
| Message-ID: <D4**********************************@microsoft.co m>
| 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!TK2MSF TNGXA03.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
| >
| >
| >
|

Nov 19 '05 #3

P: n/a
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: <OG**************@TK2MSFTNGP09.phx.gbl>
<D4**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (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: <Go**************@TK2MSFTNGXA01.phx.gbl>
| 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?=
<br********@discussions.microsoft.com>
| | References: <OG**************@TK2MSFTNGP09.phx.gbl>
| | Subject: RE: Streaming large files over network
| | Date: Fri, 28 Oct 2005 13:17:50 -0700
| | Lines: 46
| | Message-ID: <D4**********************************@microsoft.co m>
| | 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!TK2MSF TNGXA03.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
| | >
| | >
| | >
| |
|
|

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.