473,714 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2340
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?YnJpYW5zW01 DU0Rd?= <br********@dis cussions.micros oft.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************ *************** *******@microso ft.com>
| 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.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA02.phx.gbl!T K2MSFTNGXA03.ph x.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1346 23
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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************ *************** *******@microso ft.com>
| 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.publi c.dotnet.framew ork.aspnet
| Message-ID: <Go************ **@TK2MSFTNGXA0 1.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Lines: 66
| Path: TK2MSFTNGXA01.p hx.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:1349 39
| 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?YnJpYW5zW01 DU0Rd?=
<br********@dis cussions.micros oft.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************ *************** *******@microso ft.com>
| | 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.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA02.phx.gbl!T K2MSFTNGXA03.ph x.gbl
| | Xref: TK2MSFTNGXA01.p hx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:1346 23
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
8178
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 must be the only method that users receive image files.
1
1374
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 system.security.cryptography namespace. My program developed in VB.NET will have all the passwords for these AVI files and my program only can open these files using the same algorithm. I used Windows Media Player control in my application to show...
6
2725
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, every now and then the client would timeout and have to re-initiate the request... TIA!
5
3248
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
2256
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 I read this post I would surely think - pick up a manual and start reading, however we have no time for this since this is one of several demands a customer added on the last minute of a projecct.
5
3549
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 writing a web service that uses soap with attachments to send a large streaming data, The concept works quite well but when I started to test it I got this problem. When my client program calls a method that should return a real time data the...
4
1980
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 up the large file and send it a chunck at a time. But I keep getting and error stating that "Error occured: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was
1
1900
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 bandwidth and latency of the network. When streaming very large files, memory usage approaches to 2GB limit and sometimes results in out-of-memory errors. I'm considering writing my own throttle in my C++ component that polls private bytes. The only...
3
4039
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 in IE, Firefox and Opera on windows, and it works on a Mac with Firefox and Opera. But this fails in Safari with the generic message "A network error occurred while accessing this document". Here is a link to try out ...
0
8801
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9314
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9015
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7953
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5947
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4464
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3158
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2520
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2110
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.