473,490 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

is Response.WriteFile ok with large files?


I am using Response.WriteFile to send file streams back to
web clients.

My question is this:

Can I use Response.WriteFile(SomeFilePath) for any size
file? Will it handle chunking the data back to the client
or do I have to do it myself?
Nov 17 '05 #1
2 3965
writefile will stream out *any size file, but you will obviously run against
the output stream buffer set at 4k limit (may be wrong on the size limit).
In addition, you will be grinding your application to a halt trying to
stream this much info.

"Jerry J" <Ja*******@RemoveItIntegrisolve.com> wrote in message
news:00****************************@phx.gbl...

I am using Response.WriteFile to send file streams back to
web clients.

My question is this:

Can I use Response.WriteFile(SomeFilePath) for any size
file? Will it handle chunking the data back to the client
or do I have to do it myself?

Nov 17 '05 #2


Can you tell me where there is information about the size
of the stream buffer you think might be 4k? I can't find
very much information on how Response.WriteFile works.
-----Original Message-----
writefile will stream out *any size file, but you will obviously run againstthe output stream buffer set at 4k limit (may be wrong on the size limit).In addition, you will be grinding your application to a halt trying tostream this much info.

"Jerry J" <Ja*******@RemoveItIntegrisolve.com> wrote in messagenews:00****************************@phx.gbl...

I am using Response.WriteFile to send file streams back to web clients.

My question is this:

Can I use Response.WriteFile(SomeFilePath) for any size
file? Will it handle chunking the data back to the client or do I have to do it myself?

.

Nov 17 '05 #3

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

Similar topics

4
5415
by: whoopdaddy | last post by:
We are streaming a PDF file out of an ASPX page in IIS 5 using Response.WriteFile so the user does not need permissions to the directory where the files are stored. This works great when the user is...
4
3861
by: JIM.H. | last post by:
Hello, I use this: Response.Redirect("/Files/myFile.xls") which is working fine but shows address bar and I am trying to get rid of it. So if I have the following, will this let me see excel...
8
5760
by: Scott C. Reynolds | last post by:
I want to serve a PDF right to a web page (cannot link browser directly to PDF file). Stumbled across Response.WriteFile this morning. On my machine (XP Pro) this worked fine: private void...
2
2169
by: Buddy Ackerman | last post by:
I am creating a ZIP file on the fly and streaming it out to the client using Response.WriteFile(FileName, StartPos, FileSize). Because this ZIP contains files that are on my server and I don't...
1
3883
by: Ryan Pedersen | last post by:
I have been trying to figure out how to transmit a file back to a user using the response.transmitfile or response.writefile method and just not having much success. I have a dell server running...
3
6294
by: Buddy Ackerman | last post by:
I'm trying to write files directly to the client so that it forces the client to open the Save As dialog box rather than display the file. On some occasions the files are very large (100MB+). On...
2
2371
by: dotnettester | last post by:
Hi, I am using Response.writefile to write a file into clients browser. It works fine with files upto 60MB. When I come across a file size bigger than that, it break with error saying page can...
5
3665
by: Khafancoder | last post by:
Hi guys, i am building a FileSharing website, i wanna allow users to be able using download managers such as DAP to download files from webserver but don't allow them to retrive files url......
2
2009
by: Nathan Sokalski | last post by:
I have an application in which I want to allow users to view certain files that are on the server, but not part of the application. To do this, I figured I would have ASP.NET read the files and...
0
6974
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
7146
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
7183
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...
1
6852
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
7356
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...
1
4878
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...
0
1389
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 ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
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...

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.