473,695 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to speed up file upload in 2.0

Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a
large file (>20MB) to our intranet server, I get a paltry 100KB/s on our
100Mb/s LAN. Simply copying the file, I get around 7MB/s.

I'm using a FileUpload control on an .aspx page, and then I'm writing the
MyFileUpload.Po stedFile.InputS tream off to a database.

What can I do to speed up this uploading?

Thanks in advance
Dec 30 '05 #1
3 5040
Hi Mike,

Welcome to ASPNET newsgroup.
As for the file uploading performance issue, based on my experience,
programmtaicall y file uploading do have much more performance overhead than
directly network data transmitting (like file share copy...). It is due to
both of the http and programming interface( asp or asp.net ....)....
Also, to make sure the asp.net code dosn't hit performance too much, I
suggest you try using the IIS WebDav(http) API to upload the file (which
also go through HTTp) to see whether the speed differs much from the
asp.net web page uploading....

In addition, since you mentioned that your application is hosted in a local
intranet environment, you can also consider using some rich client
component to do the file uploading, e.g: ActiveX component or IE hosted
..net Usercontrol... They can use socket component to tranmit file directly
over TCP/IP instead the http form data format.....

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: How to speed up file upload in 2.0
| thread-index: AcYNQRXNVVaRjnY RQwa1ZBxS5Ba5Cg ==
| X-WBNR-Posting-Host: 198.54.202.242
| From: "=?Utf-8?B?TWlrZSBLZWx seQ==?=" <Mi*******@comm unity.nospam>
| Subject: How to speed up file upload in 2.0
| Date: Fri, 30 Dec 2005 05:01:01 -0800
| Lines: 10
| Message-ID: <8F************ *************** *******@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: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3677 09
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi. I've built a page using standard ASP.NET 2.0 features and when I
upload a
| large file (>20MB) to our intranet server, I get a paltry 100KB/s on our
| 100Mb/s LAN. Simply copying the file, I get around 7MB/s.
|
| I'm using a FileUpload control on an .aspx page, and then I'm writing the
| MyFileUpload.Po stedFile.InputS tream off to a database.
|
| What can I do to speed up this uploading?
|
| Thanks in advance
|

Jan 3 '06 #2
Thanks, Steven.

Can you point me to some "getting started" guide for using WebDav, please?
I'm new to it.

Although I mentioned the intranet, we intend using the site over the
Internet, but since upload speeds are so awful, we're restricting it to
intranet for now.

PS. Someone mentioned coding my own HttpModule. Would that make a marked
improvement, you think?
"Steven Cheng[MSFT]" wrote:
Hi Mike,

Welcome to ASPNET newsgroup.
As for the file uploading performance issue, based on my experience,
programmtaicall y file uploading do have much more performance overhead than
directly network data transmitting (like file share copy...). It is due to
both of the http and programming interface( asp or asp.net ....)....
Also, to make sure the asp.net code dosn't hit performance too much, I
suggest you try using the IIS WebDav(http) API to upload the file (which
also go through HTTp) to see whether the speed differs much from the
asp.net web page uploading....

In addition, since you mentioned that your application is hosted in a local
intranet environment, you can also consider using some rich client
component to do the file uploading, e.g: ActiveX component or IE hosted
.net Usercontrol... They can use socket component to tranmit file directly
over TCP/IP instead the http form data format.....

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: How to speed up file upload in 2.0
| thread-index: AcYNQRXNVVaRjnY RQwa1ZBxS5Ba5Cg ==
| X-WBNR-Posting-Host: 198.54.202.242
| From: "=?Utf-8?B?TWlrZSBLZWx seQ==?=" <Mi*******@comm unity.nospam>
| Subject: How to speed up file upload in 2.0
| Date: Fri, 30 Dec 2005 05:01:01 -0800
| Lines: 10
| Message-ID: <8F************ *************** *******@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: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3677 09
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi. I've built a page using standard ASP.NET 2.0 features and when I
upload a
| large file (>20MB) to our intranet server, I get a paltry 100KB/s on our
| 100Mb/s LAN. Simply copying the file, I get around 7MB/s.
|
| I'm using a FileUpload control on an .aspx page, and then I'm writing the
| MyFileUpload.Po stedFile.InputS tream off to a database.
|
| What can I do to speed up this uploading?
|
| Thanks in advance
|

Jan 3 '06 #3
Thanks for your response Mike,

WebDav is a public standard file/data transfering protocol over HTTP,
Microsoft's exchange server first implement it and IIS server also provide
support on it:

#Using WebDAV with IIS
http://www.windowsnetworking.com/art...ebDAV-IIS.html

#About WebDAV (IIS 6.0)
http://www.microsoft.com/technet/pro.../Library/IIS/8
44f5e01-4b9e-4dac-897e-2a0bb33f28af.ms px

Also, as for the following things you mentioned,
=============== =====
PS. Someone mentioned coding my own HttpModule. Would that make a marked
improvement, you think?
=============== ====

I think HttpModule will be a bit better because httpmodule process the
request at the begining of ASP.NET serverside pipeline so that it'll cause
less overhead than an asp.net httphandler or page handler....

In addition, generally speaking, for uploading file over HTTP protocol to
IIS webserver, using the raw ISAPI filter will be the best choice from
performance perspective.... .. Here are some related articles discussing
on creating file upload ISAPI component:

http://www.codeguru.com/Cpp/I-N/isap...cle.php/c4487/

http://msdn.microsoft.com/msdnmag/issues/01/10/Upload/

Hope also helps. 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: How to speed up file upload in 2.0
| thread-index: AcYQbAmYdL0dtsV hTm2FHlDmpPjuNQ ==
| X-WBNR-Posting-Host: 196.25.255.242
| From: "=?Utf-8?B?TWlrZSBLZWx seQ==?=" <Mi*******@comm unity.nospam>
| References: <8F************ *************** *******@microso ft.com>
<75************ **@TK2MSFTNGXA0 2.phx.gbl>
| Subject: RE: How to speed up file upload in 2.0
| Date: Tue, 3 Jan 2006 05:46:03 -0800
| Lines: 82
| Message-ID: <7F************ *************** *******@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: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3682 46
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks, Steven.
|
| Can you point me to some "getting started" guide for using WebDav,
please?
| I'm new to it.
|
| Although I mentioned the intranet, we intend using the site over the
| Internet, but since upload speeds are so awful, we're restricting it to
| intranet for now.
|
| PS. Someone mentioned coding my own HttpModule. Would that make a marked
| improvement, you think?
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Mike,
| >
| > Welcome to ASPNET newsgroup.
| > As for the file uploading performance issue, based on my experience,
| > programmtaicall y file uploading do have much more performance overhead
than
| > directly network data transmitting (like file share copy...). It is due
to
| > both of the http and programming interface( asp or asp.net ....)....
| > Also, to make sure the asp.net code dosn't hit performance too much, I
| > suggest you try using the IIS WebDav(http) API to upload the file
(which
| > also go through HTTp) to see whether the speed differs much from the
| > asp.net web page uploading....
| >
| > In addition, since you mentioned that your application is hosted in a
local
| > intranet environment, you can also consider using some rich client
| > component to do the file uploading, e.g: ActiveX component or IE
hosted
| > .net Usercontrol... They can use socket component to tranmit file
directly
| > over TCP/IP instead the http form data format.....
| >
| > 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: How to speed up file upload in 2.0
| > | thread-index: AcYNQRXNVVaRjnY RQwa1ZBxS5Ba5Cg ==
| > | X-WBNR-Posting-Host: 198.54.202.242
| > | From: "=?Utf-8?B?TWlrZSBLZWx seQ==?=" <Mi*******@comm unity.nospam>
| > | Subject: How to speed up file upload in 2.0
| > | Date: Fri, 30 Dec 2005 05:01:01 -0800
| > | Lines: 10
| > | Message-ID: <8F************ *************** *******@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: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3677 09
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > |
| > | Hi. I've built a page using standard ASP.NET 2.0 features and when I
| > upload a
| > | large file (>20MB) to our intranet server, I get a paltry 100KB/s on
our
| > | 100Mb/s LAN. Simply copying the file, I get around 7MB/s.
| > |
| > | I'm using a FileUpload control on an .aspx page, and then I'm writing
the
| > | MyFileUpload.Po stedFile.InputS tream off to a database.
| > |
| > | What can I do to speed up this uploading?
| > |
| > | Thanks in advance
| > |
| >
| >
|

Jan 4 '06 #4

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

Similar topics

13
4306
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
1
3756
by: Tim Frawley | last post by:
I am using the code example listed on Microsofts web page at: http://support.microsoft.com/default.aspx?scid=kb;EN-US;323245 I noticed after testing that my IE 6.0.2800 is taking anywhere from 1 minute 15 seconds to 2 minutes to upload a 50 MB file. Is there anyway to speed this up? I also noticed that Netscape Communicator 4.76 uploads the same file in 10 seconds!!!!
6
2256
by: Bruno Piovan | last post by:
Hello, does anyone know how can I measure the upload speed with asp.net?? I would like to have button on a form and when the user clicks this button, it will show what is the upload speed. Any ideas? Thanks!
2
6432
by: Mike Kober | last post by:
I am having issues with the File Upload control for sending files to the server via HTTP. The speed of the upload is often between 20kbs and 40kbs. If I use the LAN at work to the server, it runs over 2.3mbs. The slow speeds are when using multiple providers including RoadRunner and DSL. One test instance of a 40mb file showed it running at about 20kbs for about halfway, then it burst up to 500kbs for the rest of the file.
4
12859
by: halimunan | last post by:
Hello all, I have a question, how do i measure the download/upload speed... as if download rate, upload rate or kbps transfer rate. i want to do my own windows application using C# to measure the download speed. the idea is this. 1. i will put a file at a serverA. 2. i download the file 3. i measure the speed of the download(how long it would take me to complete the download)
6
3832
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the network should be able to connect to the database and run queries on the database or upload new music that does not yet exist on the database. The uploaded file's name should be in the following format: ARTIST - TITLE.mp3. I have the code to upload images,...
10
11741
by: Devang | last post by:
Hello, I am using php script to upload file. some times if file size is too big(1GB) it takes too much time to upload. Can someone suggest me the way to increase upload speed. thanks
2
5178
dlite922
by: dlite922 | last post by:
I have an intranet LAMP server and I use PHP to upload files. It is of course faster to download the same file than to upload it. I understand ISPs throttle their network for download speed, than upload since most people download from the internet vs upload. My question is if it's a local intranet with a couple of users, why is it faster to download the same exact file vs when I uploaded it a minute ago. Does it have to do with HTTP...
4
8608
by: nestle | last post by:
I have DSL with a download speed of 32MB/s and an upload speed of 8MB/s(according to my ISP), and I am using a router. My upload speed is always between 8MB/s and 9MB/s(which is above the max upload speed), ALWAYS. However, my download speed doesn't go over 25MB/s. And when my brother turns on the internet from his computer and takes up half the download/upload speeds (routers automatically split the speeds in two when two computers are using...
0
8635
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
9119
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
8994
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8852
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6493
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5839
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
4582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3008
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
3
1977
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.