Using BITS to upload a file.

  • Thread starter Thread starter UJ
  • Start date Start date
U

UJ

I'm using the MS wrapper for BITS (Microsoft.MSDN.Samples.BITS) and I don't
see any way to upload a file. Does anybody know of how to do that?

TIA - Jeff
 
Jeff,
I'm using the MS wrapper for BITS (Microsoft.MSDN.Samples.BITS) and I
don't see any way to upload a file. Does anybody know of how to do that?

I'm not familiar with the managed code wrapper you mentioned, but BITS
(Background Intelligent Transfer Service) does support uploads since version
1.3. Here's the documentation on MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bits/bits/bits_start_page.asp

Whenever you create a new BITS job, you specify the job type. Normally this
is BG_JOB_TYPE_DOWNLOAD (I'm talking about native code here), but you could
also specify BG_JOB_TYPE_UPLOAD and then continue from there. If your
managed code wrapper doesn't support this, them you might need to call the
APIs directly.

Note that the BITS upload protocol is non-standard, although this shouldn't
be a problem if you use IIS with the BITS ISAPI extension installed. The
upload protocol itself is described here:

http://msdn.microsoft.com/library/en-us/bits/bits/bits_upload_protocol.asp

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
Do anybody have any C# code that will upload a file using BITS? I'm reading
the documentation and it would take me a while to go through it all. I just
want to upload a single file to our server.

TIA - Jeff.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top