[Bf-committers] .blend magic number & MIME type

j.bakker at atmind.nl j.bakker at atmind.nl
Thu Mar 17 11:23:39 CET 2011


Hi Jeff, 

see http://www.blender.org/development/architecture/blender-file-format/

the first seven characters are always "BLENDER" for uncompressed blend
files, but the file could be gzip-compressed, and then the first 7
characters will be different.

Jeroen


Original Message:
-----------------
From: Jeff Harmon jharmon at colorhythm.com
Date: Thu, 17 Mar 2011 02:11:27 -0800
To: bf-committers at blender.org
Subject: [Bf-committers] .blend magic number & MIME type


 i work on resourcespace, an open source digital asset management 
 application that already supports the previewing of Blender files.  we 
 are working on supporting metadata and recognizing the file type.  
 http://resourcespace.org

 we are contructing a "magic number" database that will assist in 
 automatically recognizing file types.  this "magic number" is a unique 
 byte sequence to use for recognizing the file (and the offset from the 
 start of the file where it occurs -- must be within the first 1024 
 bytes).  this sequence may contain a range of values.  for example, the 
 BZ2 pattern is 'BZh[1-9]\x31\x41\x59\x26\x53\x59', which means the ASCII 
 string "BZh", followed by an ASCII character between "1" and "9", 
 followed by the hex bytes 31 41 59 26 53 59. (for a total of 10 bytes, 
 which is a reasonably strong pattern.)

 can anyone provide a magic number for .blend files?

 also, did anyone end up registering the MIME type 
 "application/x-blender" with the IANA?  even if not, is that the one we 
 should use?

 thanks!

 - J
_______________________________________________
Bf-committers mailing list
Bf-committers at blender.org
http://lists.blender.org/mailman/listinfo/bf-committers

--------------------------------------------------------------------
myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting




More information about the Bf-committers mailing list