bits

How can you configure or extend BITS (Background Intelligent Transfer Service) to read files from a Sql Server Database

I have a ASP .NET load balanced application (webservice and website). It runs on SQL server. I need to be able to provide large files for download. However, because of the load balancing situation, the files are stored in the SQL database as opposed to the file system. BITS seems to be the best approach. I have full control of the client...

Using Background Intelligent Transfer Service (BITS) with Allow notifications on the server

I am trying to get some transfers from client machines to the server and I want to use BITS for all the things that come with it. On the server, I want to be able to pickup the file and continue doing some processing. When I turn on "Allow Notifications", everything seems to go as normal but the file doesn't show up. When I check the ...

File upload using BITS (Background Intelligent Transfer Service) and AJAX

Hi all, does anyone know if it is possible to do a file upload using the BITS protocoll? The protocol is HTML1.1, so in theory it should be possible. Any ideas are appriciated. Thanks, . Ivar ...

Set a C++ bitset from a binary input steam

I have an input stream from a binary file. I want to create a bitset for the first 5 bits of the stream. Here is the code I have so far: ifstream is; is.open ("bin_file.out", ios::binary ); bitset<5> first_five_bits; is >> first_five_bits; // always is set to default 00000 ...

BITS, TakeOwnership, and Kerberos / Windows Integrated Authentication

We're using BITS to upload files from machines in our retail locations to our servers. BITS will stop transferring a file if the user who owns the BITS job logs off. Therefore, we're using a Windows Service running as LocalSystem to submit the jobs to BITS and be the job owner. This allows transfers to continue 24/7. However, it raises ...

build a decimal from two bytes, having last 5 bits as decimal part ?

I've got two bytes (network order). Let's use them as a short. Now the first 11 bits should be the integer part and the last 5 bits the fractional part (e.g. resulting in 2.4). How do I? ...

Question about 32-bit / 64-bit systems

Firstly, what is this called? Is this the system's "platform"? If I want to know if a system is 32-bit or 64-bit, do I ask what "platform" it is? Next, is what I wrote below correct: -A 64-bit processor can run a 64-bit operating system or a 32-bit operating system (with a loss of efficiency). -A 32-bit processor can run a 32-bit oper...

Compression in Scala

I'm working on Scala with VERY larg lists of Int (maybe large) and I need to compress them and to hold it in memory. The only requirement is that I can pull (and decompress) the first number on the list to work with, whithout touching the rest of the list. I have many good ideas but most of them translate the numbers to bits. Example: ...

Background Intelligent Transfer Service(BITS) download speed really slow?

Hi guys, I am using BITS 2.1 version, on Window XP SP3. I have 2 files, to download using BITS, one is around 9 Mb, other around 1 Mb. I created a BITS job in my C# code, added the 2 files to this Job and started the download. The job has a priority of Normal. The 9Mb file gets downloaded quickly but the other file does not start downlo...

Remotely enumerating BITS jobs (Background Intelligent Transfer Service)

I'm using the c# wrapper sharpBITS as a means to download files via HTTP. However, I was wondering whether it would be possible enumerate the current downloading BITS transactions from the web server, rather than the client. ...

C++ Primitive datatypes: how to read unsigned 30 bits

Hi all, I have an array of unsigned chars. Basically I have an array of bits. I know that the first 16 bits corresponds to an unsigned integer and I retrieve its value using (u16)(*(buffer+ 1) << 8 | *abcBuffer) Then comes a data type called u30 which is described as follows: u30 - variable length encoded 30-bit unsigned integer va...

Background Intelligent Transfer Service (BITS) Upload Problem

Hi friends, I have a problem while using Background Intelligent Transfer Service (BITS). I have a code that Upload/download the file in virtual directory. I have tested that code in my local domain on IIS6 its working very fine but when I am trying to upload the file to the external network its not working its give the error “request URL...

How can I invert bits of an unsigned byte in Java?

Hello, I am trying to write a decoder for a very simple type of encryption. Numbers from 0-255 are entered via Scanner, the bits are inverted, and then converted to a character and printed. For example, the number 178 should convert to the letter "M". 178 is 10110010. Inverting all of the bits should give 01001101, which is 77 or ...

BITS Credential Problem

Hi friends, i am facing the BITS Security problem. I am creating the application where i am using t BITS to upload and download the file to the IIS server. Now, my requirement is that i want to make my Virtual Directory password protected. i have done it through IIS>Directory Security i disallow the anonymous access. But from the clien...

Prevent BITS from hitting a webpage too often

I have created website on my local machine which will render a file to a client using Response.OutputStream.Write. The client is a Windows Forms application which uses BITS and specifies the website URL which I have created for file download, for example: job.Files.Add("http://localhost/GetDocOffline2_1/Default.aspx?func=ll&amp;objid=61...

Does BITS not support Last-MOdified Header

Hi, I am developing a ASP.NET website to download a file in Response. The file download needs to add headers like Last-Modified, ETag on top Content-Type,Content-Length headers. The client would use BITS to download the file.I am testing it on my machine which has the website and the client tool.When I include the Last-Modified header w...

Is there a way to access individual bits with a union?

I am writing a C program. I want a variable that I can access as a char but I can also access the specific bits of. I was thinking I could use a union like this... typedef union { unsigned char status; bit bits[8]; }DeviceStatus; but the compiler doesn't like this. Apparently you can't use bits in a structure. So what can I ...

Storing 4 bits from a byte in VB.Net

What is the best way to store 4 bits from a byte in VB.Net? Where best means: Most straightforward method of storage from a Byte type. The easiest to work with while performing bitwise operations. Straightforward conversion of the bits to other types. Storing them in a BitArray via it's constructor reverses the order of the bits. This m...

ASP.NET Uploading files in the background (BITS/AJAX?)

I have a webpage where users can create a database record and select a file they want to upload to the database server. these files can be big, like 100mb. I dont want the user to wait, so I want the file to be uploaded in the background. So that they can continue with doing other stuff while the file is being uploaded. Is BITS the way...

Storing a bunch of 3bits long binary data with PHP

Hi, My PHP program is working with an array of values ranging from 0 to 7. I'm trying to find the most effective way to store those values in PHP. By most effective I mean using the less number of bits. It's clear that each value only need 3 bits of storage space (b000=0 to b111=7). But what is the most efficient way to store those 3bi...