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 2 5208
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_DOW NLOAD (I'm talking about native code here), but you could
also specify BG_JOB_TYPE_UPL OAD 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***@removethi s.dystopia.fi 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.
"Jani Järvinen [MVP]" <ja***@removeth is.dystopia.fi> wrote in message
news:OW******** ******@TK2MSFTN GP02.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_DOW NLOAD (I'm talking about native code here), but you could also specify BG_JOB_TYPE_UPL OAD 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***@removethi s.dystopia.fi http://www.saunalahti.fi/janij/
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in
that XML file to an xml or MS access db.
|
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 UploadFile() in ASP .NET but it doesn't support resume ability. This is why I want to use BITS v1.5 upload feature
Please help, thanks
-P
|
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 upload a 50 MB file whereas Netscape Communicator
is taking 10 seconds to upload the same file.
The file is identical after uploading in either browser. Why would
Netscape be so much faster?
|
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" %>
|
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 get it to upload a file to the FTP server. I just get a
"Cannot connect to remote server" error after this TRY:
s = New Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp)
| |
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 doesn't works on IE.
Please, help me out as I am new to this and would be highly thankful if anyone has running code for uploading image files to the server using CGI either Perl or C.
This code i took it from net only.
#!/usr/bin/perl -w
|
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 obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
|
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 would give it a try.
First of all, I am using Visual Studio 2005 to write my program. I am using C# .NET as the language. I am running Windows XP Professional with all service packs and updates applied.
Now, I have been trying to write a...
|
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 needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files.
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |