binaryfiles

What's the best way to save and retrieve binary files with Oracle 10g?

I'm about to implement a feature in our application that allows the user to 'upload' a PDF or Microsoft PowerPoint document, which the application will then make available to other users in a viewer (so they don't get to 'download' it in the 'Save as..' sense). I already know how to save and retrieve arbitrary binary information in data...

Understanding how Ada serializes a record

I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up? I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program that is supposed to write a compatible binary file. So, I would...

Programmatically determine video file format?

Ok, I get the basics of video format - there are some container formats and then you have core video/audio formats. I would like to write a web based application that determines what video/audio codec a file is using. How best can I programmatically determine a video codec? Would it be best to use a standard library via system calls and...

How can I stream an XPS document to a browser and embed it in a webpage?

I'm looking for some suggestions on how to go about this. Any input is appreciated! Currently, I have an ASP.NET MVC application. On the client, I have a link with an ID of an XPS document. When the user clicks the link, they are taken to a page with details about the document. In addition to this information, I wish to display the ...

Reading compound documents in c#

Hi - I'm starting a project which requires reading outlook msg files in c#. I have the specs for compound documents but am having trouble reading them in c#. Any pointers would be greatly appreciated. Thanks. ...

Any Generic Utilities or Libraries for Converting Hex Dumps into Human-readable Form?

I work a lot with serial communications with a variety of devices, and so I often have to analyze hex dumps in log files. Currently, I do this manually by looking at the dumps, looking at the protocol spec, and writing down the results. However, this is tedious and error-prone, especially whem messages contain hundreds of bytes and con...

What exactly causes binary file "gibberish"?

I haven't found an answer to this particular question; perhaps there isn't one. But I've been wondering for a while about it. What exactly causes a binary file to display as "gibberish" when you look at it in a text editor? It's the same thing with encrypted files. Are the binary values of the file trying to be converted into ASCII? Is ...

Removing a sequence of characters from a large binary file using python

I would like to trim long sequences of the same value from a binary file in python. A simple way of doing it is simply reading in the file and using re.sub to replace the unwanted sequence. This will of course not work on large binary files. Can it be done in something like numpy? ...

How can I extract the .jpg/.png components of an .hpi file?

I stumbled across my rather ancient photo objects disks, and sadly found out the company (hemera) doesn't provide support for it anymore. this has left me with a whole pile of .hpi files. Luckily, I found this information on extracting the jpg and png components of the file. Unfortunately, I haven't been able to get it to work. Can anyo...

C++ Huffman Code Header

Hello, basically, I've got my Huffman table as std::map<std::string, char> ciMap; Where string is the bit pattern and char is the value represented by said pattern. The problem is how do I store that as a header of my compressed file so I can build again the same map when I want to decode it? Trying to store it as binary: size_t m...

What to put in a binary data file's header

I have a simulation that reads large binary data files that we create (10s to 100s of GB). We use binary for speed reasons. These files are system dependent, converted from text files on each system that we run, so I'm not concerned about portability. The files currently are many instances of a POD struct, written with fwrite. I need...

Using Debug Thirdparty DLLs in Production

I want to use Rhino Tools in an application (for the Binsor support). There isn't a binary release so I'm downloading the source and compiling it. It compiles the debug binaries no problem, but the release build fails. The app that I'm developing will be deployed with release binaries, but will have to reference the debug build of Rhino...

How to reverse engineer binary file formats for compatibility purposes

I am working of a file preparation software to enable translators work easily and efficiently on a wide range of file formats. As far as text-based formats (xml, php, resource files,...) are concerned, my small preparation utility works fine, but a major problem for most translators is to handle all kinds of proprietary binary formats ...

Managing large binary files with git

Hi there. I am looking for opinions of how to handle large binary files on which my source code (web application) is dependent. We are currently discussing several alternatives: Copy the binary files by hand. Pro: Not sure. Contra: I am strongly against this, as it increases the likelihood of errors when setting up a new site/migratin...

Evaluating HDF5: What limitations/features does HDF5 provide for modelling data?

We are in evaluating technologies that we'll use to store data that we gather during the analysis of C/C++ code. In the case of C++, the amount of data can be relatively large, ~20Mb per TU. After reading the following SO answer it made me consider that HDF5 might be a suitable technology for us to use. I was wondering if people here ...

Webcasting/Broadcasting using VB.NET, MYSQL and ASP.NET

Hi,. I am currently working on my project webcasting, my concept is to capture the desktop of the host computer as an image/jpeg file and save it to the database, by having a common database VB.NET and ASP.NET can connect. And lastly, get the image/images from the database and render it to ASP.NET. 1.) VB.NET -> capture image 2.) MYSQL...

How to Write Strings Into Binary File

With this code I tried to print the string "foo" 10 times in binary format. But why doesn't the function to do it work? #include <iostream> #include <fstream> using namespace std; template <typename T> void WriteStr2BinFh (string St, ostream &fn) { for (unsigned i = 0; i < St.size(); i++) { char CStr = St[i]; fn....

Content of Binary Output File Created With Output Stream

Dear all, This code compiles and does execute. It simply print the content into a binary format. However the output differs from what I expected, namely: Output file size should be much smaller that those created with std::cout. The content of output file should be compressed, hence when we open it in editor, we should not be able to...

Most efficient way of loading formatted binary files in Python

I have binary files no larger than 20Mb in size that have a header section and then a data section containing sequences of uchars. I have Numpy, SciPy, etc. and each library has different ways of loading in the data. Any suggestions for the most efficient methods I should use? ...

how to parse binary files in Clojure

What is the cleanest way to parse binary data in clojure? I need to be able to read/write equally cleanly to a file or a socket. something like: (read-data source-of-data) => { :index 42 , :block-size 4 , data-size: 31415, :data (1 2 3 4 ...)} and the reverse for putting data back. It would be really great to somehow define t...