Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Related Posts
Laziness .NET -- the Professional Edition
Some new MSDN links of note
Displaying RSS on my own site
Wonders of Windows Forms, and headshots ...
Feeling the Cache Love

Doing uploads with BITS

Posted on March 9th

I wrote a couple of articles on BITS in the past (creating a wrapper, then background copying, then digital grandma) but it was all about downloading files. Starting with BITS 1.5, you can also upload files... is that topic of interest to folks? Just FYI, you need web server support to make this work, as detailed here.



Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Yep. This is a topic that I'd definitely be interested in learning more about. This would make it easier on an application that I'm writing in that wouldn't need to check that the user is online before sending large message packets to a web server. This would work great since the messages don't need to be sent in sequential order.

BITS saturates the Internet connection? That has not been my experience, in fact, considering that Windows Update is using BITS 2.0 to download patches. As far as benefit, I've found that when I need to pull down a file, especially a very large one, I like that fact that I can continue using my machine without impact on my network perf (noticable impact that is) and that if I need to 'standby' my laptop and switch locations... or if my network connection drops (damn Comcast!), then my download isn't lost.

This is of great interest. Uploading of large files from a client to a sever is a emerging need in many industries.
I am looking for a simple way to program uploading of files over http/s using Bits 1.5/2.0 in C#.

Duncan, Are you considering writing an article on BITS upload? If yes, when?

YES, I need to create an Upload tool for users to upload EXTREMELY large files(yes we have bandwidth). My boss asked me to see about using BITS so I am looking into it. Everything I've found so far is on downloading. I would REALLY like to see something on "uploading".

Thanks

Mark

Hi Duncan
Please, please ... there is a definite need for this! I've created a .NET wrapper for the BITS 1.5 API but am at a bit of a loss how to work with it.
Best regards, please keep the articles coming
Loane

An article on uploading via BITS would be great. I am looking at incorporating online background backup into my application (C#) and BITS seems to fit the bill.

I have actually written a VB.NET wrapper and an application that will upload with BITS. It works great - sometimes. For some as of yet unknown reason, a BITS job that gets created by my application can take an incredibly long time to upload. ie. 3 hours for a 100K file from a location with DSL. I have an open ticket with MS on this at the moment.

I too am interested in a BITS wrapper that supports upload jobs. My cuurent not so elegant approach is to spawn the command-line BitsAdmin.exe, but .Net should be able to do much better!