file-format

Write Microsoft Project file

I have a requirement to export to Microsoft Project from my company's program. As far as I've seen there are a few options: Use one of the interchange formats, e.g. xml, mpx, mpd Use the COM object model and automation to write the file Buy a library that can write the files The interchange formats have the problem that they will giv...

A Reference on the layout and structure of GameBoy Color Roms?

Does anyone have a reference or source about how GameBoy Color roms are laid out - where the data and code, what machine code instructions are used, how the clock works etc? I'm interested in perhaps building an emulator myself but I can't find any information about the roms' setup other than looking at them in a hex editor. I'm interest...

Detect PowerPoint version

Is it possible to detect the version of a powerpoint(PowerPointXP etc) file? ...

GNAT - GVD: not in executable format: File format not recognized

I'm on an XP Virtual Machine running the GNU Visual Debugger 1.2.6, trying to open an Ada file (.adb), but keep getting the following error: not in executable format: File format not recognized I should also mention that I've installed both the Ada compiler kit and win32 tools for GNAT 3.14p. I've since tried opening other .adb ...

What is the earliest timestamp value that is supported in ZIP file format?

I am trying to store dates as latest modification timestamp in a ZIP -file. It seems that ZIP format support only dates after 1980-01-01 as a last modification time (at least via Java API java.util.zip.ZipEntry ) Is this correct? Is the earliest supported modification timestamp really 1980-01-01 00:00:00? I tried to find some references...

Image and audio lossless file format

Hello, I know that JPG and MP3 always apply some kind of compression which losses data. Then I have to questions: - Which are the lossless file formats for image, audio and video? - Why, as far as I know, any photocamera does not offer the possibility to store images in a lossless file format? - I know that the data lost is really small...

Decoding an mpf exif block in an MPO stereo image file

I am writing something to get at the information contained in an MPO multi-picture file produced by cameras such as the fuji 3D cameras. I have the proposed spec, which is obviously written to confuse, and is available from here: CIPA multi picture spec PDF and have navigated the normal exif parts and extracted the MFP information. Sec...

Getting Face-Vertex meshes (vertxes and indexes arrays) from a 3D file format

I want to import a 3D model into a program that uses open GL. I will use glDrawElements() so I am going to need the vertexes and indexes arrays. The model is originally saved in a sldprt file extension but I don't think it will be hard to change it into another file format. Anyway, I want to know what the simplest 3D file format is. An...

How to convert byte array into it's appropriate file format in ASP.NET MVC

I have a system that's supposed to convert a byte array (not knowing whether its pdf, txt, or doc) provided to me into a downloadable file. Now usually in ASP.NET MVC I would do it like this. return File(labTestResult.File, "application/pdf"); That's easy because I know what the filetype is. Now that the filetype could be anything, is...

What is the smallest audio file format?

I know this is not a specific programming question but I hope someone can give me a suggestion. My applications (iPhone and Blackberry applications) use a lot of audio files. I need a solution for my applications in order to save some spaces. Is it right that .aac is the most suitable audio format for iPhone? Is it the smallest one? It...

Where can I find a good reference for the ELF file format?

I'm in the process of writing a compiler that will be generating ELF executable files for the i386 platform. However, I need a good reference for the file format (information on headers, relocations, etc.). Is there such a reference? ...

How to import a function from libc6 into an ELF executable?

I am creating an i386 ELF executable that needs to import a function from libc6. (It's printf, by the way.) I have created a very small ELF executable that prints "Hello, world!" to the console by using the Linux kernel interrupt 0x80. This is not optimal and I would like to have the application make use of libc instead. Here is what I...

Why do file formats have magic numbers?

For example, Portable Executable has several, including the famous "MZ" at the beginning, as well as the "PE\0\0" at the start of the PE header. The Rar file format has the "Rar!" header at the beginning, and several others have similar "magic values" in the file. What purpose do such magic values serve? ...

opening a file format

Hi there, I've been looking on certain sites for some time now, but I cant seem to find anything usable about file formats. There is a certain file format on my computer, which I want to re-create to make add-ons for a program. Unfortunatly I would be the first to do so for that certain format, which makes it all the more hard. There a...

How can I detect an .exe file that is produced by vb6 and recognize different vb6 files from each other?

I'm writing a program to detect which ".exe" file is generated by "Visual Basic6". I found that at the "entry point" of each vb file, there is an address at offset 1 from "entry point" which points to a location that contains the string: "vb5!", is that a certain signature? Can I be sure that in every vb files this string is exist? Then,...

translate data file with odd Hebrew encoding

I have a binary data file, in a format used by a relatively ancient program, which I am trying to convert into something sane. With the help of a Hex editor I have basically worked out the file format except that it contains Hebrew characters with an odd encoding. All characters are 8 bits. The "standard" 27 consonants (including "fin...

What is the principle of VirtualBox's dynamic size hard disk?

Do you know TrueCrypt Project? It makes a container file and formats it. The container file will be seen as like a volume. An we do I/O to the volume, the I/O will be crypted. By the way, can the container file size be flexible like virtualbox's dynamic hard disk(.vdi file)? I made a crypt driver like the TrueCrypt. But my container f...

C++ Using a file format

Hi there, A couple of days ago, I asked how you could reverse engineer a file format. While that didn't really work out, someone gave me the file format. (Click Here) Thank you Xadet. I'm still quite new to all this, and I was wondering where I should go from here. I am guessing I will have to use inline-asm in C++ to use this format, ...

How can my Perl script determine whether an Excel file is in XLS or XLSX format?

I have a Perl script that reads data from an Excel (xls) binary file. But the client that sends us these files has started sending us XLSX format files at times. I've updated the script to be able to read those as well. However, the client sometimes likes to name the XLSX files with an .xls extension, which currently confuses the heck...

Exporting tabular data in Numbers-readable format

I have app that exports data in CSV. Recently I added "Open In..." feature for opening .csv files in other apps. I would like to be able to have Numbers (on iPad) open exported files as well. Trawling through Numbers's Info.plist, I saw that it supports four document types: com.apple.iWork.Numbers.sffnumbers com.apple.iWork.Numbers.nu...