473,416 Members | 1,762 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,416 software developers and data experts.

Streaming large files over network

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
3 2314
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: A.M-SG | last post by:
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...
1
by: Vanga Sasidhar | last post by:
Hi All, I am developing a program in Visual Basic .NET 2002. There are some videos in AVI format. For the protection of these AVI files i encrypted my files with the use of DES algorithm in the...
6
by: | last post by:
Hi all, is there a better way to stream binary data stored in a table in sql 2005 to a browser in .net 2.0? Or is the code same as in .net 1.1? We noticed that in certain heavy load scenarios,...
5
by: Manuel Alves | last post by:
Hi, Is it possible to store media files (like windows .wmv) on SQL Server 2005 and stream it back to the client via media server (not just download it)? Regards, Manuel Alves
4
by: Daniel Marious | last post by:
Hi, I'm looking for a .Net/COM component which would allow a .Net programmer with no streaming experience to be able to save online streams to local resources (files or to DB). I know that if...
5
by: pmakoi | last post by:
dear all this might be a piece of cake for some of you out there but it is causing me a lot of stress given the fact that there is not enogh documentation out there regarding this topic I am...
4
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hello, I need some help. I am trying to write my own web server for serving up large files on my own network. I am using FileStream, BinaryReader, TcpClient, and Sockets. I am trying to break...
1
by: michaelpyles | last post by:
IIS6 (x86) - Classic ASP application - I am downloading files via calls to BinaryWrite from a C++ COM component. The ASP DLL doesn't seem to do a good job limiting memory usage based on the...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
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: 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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.