File format

« Back to Glossary Index

File Format Specifications and Patents
– File formats often have published specifications describing encoding methods
– Specifications enable testing of program functionality
– Some developers view their specifications as trade secrets
– Reverse engineering or acquiring specification documents are common methods to utilize file formats
– File formats with publicly available specifications are more widely supported
– Patent law is often used to protect file formats
– Some formats use patented algorithms
– GIF file format required patented compression algorithm prior to 2004
– GIF patent expired in the US in mid-2003 and worldwide in mid-2004
– Patent expiration led to the development of alternative formats like PNG

Identifying File Type
– Different operating systems use different approaches to determine file format
– Multiple approaches are often needed to read foreign file formats
– Filename extension is a popular method used by many operating systems
– Filename extension is the portion of the filename after the final period
– Limited number of three-letter extensions can cause confusion

Internal Metadata and File Headers
– Another way to identify file format is using information stored inside the file itself
– Information can be specifically meant for identification or binary strings in specific locations
– Internal metadata provides reliable identification of file format
– This method is used in addition to other approaches by modern operating systems
– Internal metadata helps in reading and working with foreign file formats
– File headers contain metadata about the file and its contents.
– They are usually stored at the start of the file, but can be present in other areas too.
– Text-based file headers are human-readable and can be examined easily.
– Binary formats usually have binary headers.
– File headers may be used by an operating system to quickly gather information about a file.
– File headers can store information about image format, size, resolution, and color space.
– They can also contain authoring information such as the creator, date, and camera settings.
Metadata in file headers is used by software during the loading process and afterwards.
– Text-based file headers are larger in size but can be easily examined using simple software.
– Binary headers may require complex interpretation and can result in corrupt metadata.

Magic Numbers and Shebang Lines
– Magic numbers are identifiers stored inside the file itself for file type recognition.
– Any unique feature of a file format can be used as a magic number.
– Magic numbers offer better guarantees for identifying the file format correctly.
– They can determine more precise information about the file.
– Magic numbers can be inefficient for displaying large lists of files.
– Shebang lines in script files are a special case of magic numbers.
– Shebang lines identify a specific command interpreter and its options.
– The magic number in shebang lines is human-readable text.
– Shebang lines are used to execute scripts with the correct interpreter.
– They are commonly used in Unix-based systems.

External Metadata and Symlinks
– External metadata stores information about the file format in the file system.
– This approach keeps metadata separate from the main data and the file name.
– External metadata is less portable compared to filename extensions or magic numbers.
– Zip files or archive files solve the problem of handling metadata.
– Zip files collect multiple files together with metadata in a compressed and encrypted format.
– Symlinks are symbolic links that point to another file or directory.
– They provide a way to create shortcuts or references to other files or directories.
– Symlinks can be used to create aliases or alternative names for files or directories.
– They are commonly used in Unix-like operating systems.
– Symlinks can be created using the ln command.

File format (Wikipedia)

A file format is a standard way that information is encoded for storage in a computer file. It specifies how bits are used to encode information in a digital storage medium. File formats may be either proprietary or free.

wav-file: 2.1 Megabytes.
ogg-file: 154 kilobytes.

Some file formats are designed for very particular types of data: PNG files, for example, store bitmapped images using lossless data compression. Other file formats, however, are designed for storage of several different types of data: the Ogg format can act as a container for different types of multimedia including any combination of audio and video, with or without text (such as subtitles), and metadata. A text file can contain any stream of characters, including possible control characters, and is encoded in one of various character encoding schemes. Some file formats, such as HTML, scalable vector graphics, and the source code of computer software are text files with defined syntaxes that allow them to be used for specific purposes.

« Back to Glossary Index

Submit your RFP

We can't wait to read about your project. Use the form below to submit your RFP!

Gabrielle Buff
Gabrielle Buff

Just left us a 5 star review

google

Great customer service and was able to walk us through the various options available to us in a way that made sense. Would definitely recommend!

google

Stoute Web Solutions has been a valuable resource for our business. Their attention to detail, expertise, and willingness to help at a moment's notice make them an essential support system for us.

google

Paul and the team are very professional, courteous, and efficient. They always respond immediately even to my minute concerns. Also, their SEO consultation is superb. These are good people!

google

Paul Stoute & his team are top notch! You will not find a more honest, hard working group whose focus is the success of your business. If you’re ready to work with the best to create the best for your business, go Stoute Web Solutions; you’ll definitely be glad you did!

google

Wonderful people that understand our needs and make it happen!

google

Paul is the absolute best! Always there with solutions in high pressure situations. A steady hand; always there when needed; I would recommend Paul to anyone!

facebook
Vince Fogliani
recommends

The team over at Stoute web solutions set my business up with a fantastic new website, could not be happier

facebook
Steve Sacre
recommends

If You are looking for Website design & creativity look no further. Paul & his team are the epitome of excellence.Don't take my word just refer to my website "stevestours.net"that Stoute Web Solutions created.This should convince anyone that You have finally found Your perfect fit

facebook
Jamie Hill
recommends

Paul and the team at Stoute Web are amazing. They are super fast to answer questions. Super easy to work with, and knows their stuff. 10,000 stars.

facebook

Paul and the team from Stoute Web solutions are awesome to work with. They're super intuitive on what best suits your needs and the end product is even better. We will be using them exclusively for our web design and hosting.

facebook
Dean Eardley
recommends

Beautifully functional websites from professional, knowledgeable team.

google

Along with hosting most of my url's Paul's business has helped me with website development, graphic design and even a really cool back end database app! I highly recommend him as your 360 solution to making your business more visible in today's social media driven marketplace.

yelp

I hate dealing with domain/site hosts. After terrible service for over a decade from Dreamhost, I was desperate to find a new one. I was lucky enough to win...

google

Paul Stoute has been extremely helpful in helping me choose the best package to suite my needs. Any time I had a technical issue he was there to help me through it. Superb customer service at a great value. I would recommend his services to anyone that wants a hassle free and quality experience for their website needs.

google

Paul is the BEST! I am a current customer and happy to say he has never let me down. Always responds quickly and if he cant fix the issue right away, if available, he provides you a temporary work around while researching the correct fix! Thanks for being an honest and great company!!

google

Paul Stoute is absolutely wonderful. Paul always responds to my calls and emails right away. He is truly the backbone of my business. From my fantastic website to popping right up on Google when people search for me and designing my business cards, Paul has been there every step of the way. I would recommend this company to anyone.

yelp

I can't say enough great things about Green Tie Hosting. Paul was wonderful in helping me get my website up and running quickly. I have stayed with Green...