473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Using BITS to upload a file.

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
2 5188
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
1
by: Paul | last post by:
Hi Does anyone know how to implement BITS v1.5 upload feature in ASP .NET? I found the way to setup the server side but no luck in implementing a web-based client application. I know there's a...
1
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...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
2
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
by: WeCi2i | last post by:
Okay, I have a problem that has been stumping me for weeks. I have tried many different solutions and this is pretty much my last resort. I have seen a lot of good answers give here so I figured I...
221
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...
0
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...

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.