Surety is performing system maintenance this weekend. Electronic date stamps on new Prior Art Database disclosures may be delayed.
Browse Prior Art Database

A Method To Embed One Or More Binary File Images In An Executable Program

IP.com Disclosure Number: IPCOM000029904D
Original Publication Date: 2004-Jul-16
Included in the Prior Art Database: 2004-Jul-16
Document File: 3 page(s) / 30K

Publishing Venue



A Method to Embed Binary File Images in An Executable Program

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 3

A Method To Embed One Or More Binary File Images In An Executable Program

    A program is disclosed that creates compilable source code which can added to the source code for second program (consumer) to embed one or more binary file images within the consumer.

    The program enables quick and easy creation of consumers that require access to a binary image of one or more files. Writting the consumer program will not require any specialized knowledge or skills beyond those necessary to write any other program in the chosen language. For example, a consumer that delivers updated files for an application can be created with embedded images of the updated files and deliver the updated files by recreating them from the embedded images.

    The program leverages the fact that most modern programming languages implement the concept of autoinitialized variables. Source code for autoinitialized variables contains the variable's type, name and an initial value for the variable. In the case of array variables, the array's initial value is specified by a list of values that represent the initial value for each element in the array.

    The program creates source code for two types of autoinitialized arrays. It creates one primary array of data structures with one element for each embedded image. It also creates a set of secondary arrays with one array for each embedded image. The data structure for each element in the primary array contains information about the embedded file and a reference to the file's secondary array. Each secondary array contains an exact image of the embedded file's contents. The Figure below shows the relationship between the primary and secondary arrays.


Page 2 of 3


    The program writes a definition for the data structure that will be used for each element of the primary array and a declaration for the primary array. For each file that will be embedded, the program writes autoinitialization code for one element of the primary array and a complete secondary array that contains an image of the f...