By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,098 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,098 IT Pros & Developers. It's quick & easy.

Using BITS to upload a file.

P: n/a
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
Jun 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/de...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...d_protocol.asp

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Jun 13 '06 #2

P: n/a
UJ
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.

"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:OW**************@TK2MSFTNGP02.phx.gbl...
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/de...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...d_protocol.asp

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Jun 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.