binary

How do you programmatically change the WCF message encoding for NetTcp?

I have a custom intranet application that has no interoperability requirements. We programatically construct a NetTcp channel in duplex mode for passing messages. We wanted to change the message encoding but haven't been able to figure out how to make that happen. The approach we have taken (unsuccessfully) has been to extend the NetT...

Linux distribution binary compatibility

Any way to make a binary in a Linux distribution and run it on another distribution with same architecture? Or I should compile and build it on different distributions? Is there any compatibility between Redhat, Debain based distributions for binary files? (I want to use my ubuntu binary file on fedora!) ...

Best way storing binary or image files

What is the best way storing binary or image files? Database System File System Would you please explain, why? ...

Binary data in MySQL

I need to store binary data, such as 1110000, in MySQL. When I select it, I need the return value to be the same 1110000 again. What data type should I use? Can I use bit? Or would varbinary be better? ...

C#: Whats the fastest way of reading and writing binary?

I'm currently optimizing an application, one of the operations that is done very often is reading and writing binary. I need 2 types of functions: Set(byte[] target, int index, int value); int Get(byte[] source, int index); These functions are needed for signed and unsigned short, int and long in big and little endian order. Here ar...

Binary files and OS

Hello! I'm currently learning C++ and there are some (basic) things which I don't really know about and where I didn't find anything useful over different search engines. Well as all operating systems have different "binary formats" for their executeables (Windows/Linux/Mac) - what are the differences? I mean all of them are binary bu...

pdf read pages to BitmapData in AS3

I’m starting a project in flash AS3 and my objective is to load any pdf file into my flash project and convert all its pages to BitmapData... I am familiar with byteArray and I know I must access the pdf in binary level but I don’t know where to start and how to start. I was hoping if you could give me some insight? Maybe a suggestion ...

How to use NetCat for Windows to send a binary file to a TCP connection?

If I want to transfer a binary file "binary.bin" (located in the same directory as NetCat) to IP address 127.0.0.1 port 1200 using TCP, how do I specify this using NetCat for windows? ...

What does executable file actually contain ?

What does executable actually contain ? .. Does it contain instructions to processor in the form of Opcode and Operands ? If so why we have different executables for different operating systems ? ...

Using Python struct.unpack with 1-byte variables

How can I use struct.unpack() or some other function available in Python to easily convert one byte variable to a Python integer? Right now, it is done in a rather lame way: file = open("telemetry.dat", "rb").read() magic = file[0] int(binascii.hexlify(magic), 16) Is there another? ...

WiX - how to create bin subdirectory?

I'm missing something obvious. How do you put the .dll's in a subdirectory called "bin" under your install directory? I'm trying to follow this tutorial: http://www.tramontana.co.hu/wix/lesson5.php#5.3 to deploy a WCF web service. So I need to copy the .svc files and the .bin files, along with a few other, but starting with just thes...

Java: Create an image from binary data (both image data and color palette)

I am trying to create an image from a binary file. The file contains a 32x32 icon and its corresponding 16 colors palette. Specification The icon is 512 bytes long. The icon is separated in 4x4 tiles. Each tile is 4x8 bytes. Here's the 4x8 arrangement of bytes for a single tile: B B B B B B B B B B B B B B B B B B B B ...

Python conversion from binary string to hexadecimal

how can I perform a conversion of a binary string to the corresponding hex value in python I have 0000 0100 1000 1101 and I want to get 048D I'm using python2.6 Thanks for the help ...

Xcode iPhone binaries

I got curious what my binary iphone files contained, so I opened some in a text editor. To my surprise, there are a lot of methods and stuff being mentioned, even in the binaries that are code signed (I thought they got encrypted?). Not that it is a problem, I'm just curios. Why are there so many things in plain text? ...

iPhone Binary for the App Store

After reading another thread about creating the binary for App Store submission (http://stackoverflow.com/questions/1497547/how-to-create-binary-of-iphone-application) I'm still a bit confused. Do I just compress the app in the build/Release-iphoneos directory? Has anyone submitted a binary recently that can let me know how to do this?...

Expect-like tool for binary protocol testing

I'd like to write tests for a simple byte-oriented protocol using something like Expect. The test scripts would look like a plain stream of: send "data" expect "data" (Where send writes to stdout and expect reads just enough from stdin, exiting if it doesn't match.) I can't use expect itself because it is designed for buffered, line-...

Has anyone been able to create a hybrid of PE COFF and ELF?

I mean could a single binary file run in both Win32 and Linux i386 ? ...

I need to generate a file from binary information in sql........

I am writing a windows desktop application in visual basic and I need it to connect to a SQL database, take a rows unique id, and using that number generate a file from the binary data that is stored in the SQL database and save it to a file directory. The part that is hanging me up is the creating the file from the binary SQL data. ...

Using binary type of a UserProperty

Hello, For some reason I need to save some big strings into user profiles. Because a property with type string has a limit to 400 caracters I decited to try with binary type (PropertyDataType.Binary) that allow a length of 7500. My ideea is to convert the string that I have into binary and save to property. I create the property using t...

how do I print a binary double array from commandline (unix)

I got binary file, that contains doubles. How do i print that out to a terminal. I've tried octaldump 'od' but cant figure out the syntax I've tried something like head -c80 |od -f But that doesnt work, the man page for od is extremely bad. I've made a c program that does what I want, something like assuming 10double chunks. double...