title: Is it possible to store binary files inside an exe
body: <p>Is it possible to do this: (for educational purpose).</p>
  
  <p>suppose I have a image file "image.jpg"<br>
  I want to create a program when it executes it should create this image. That means the data of the image is stored in the exe. Is this possible to do?</p>
  
  <p>Something like this: link the image file from resource.rc then tell the compiler to get the data and store it (something like this <code>unsigned char data_buffer[]="binary data of the image"</code> then when the program is executed I can write this data to a file)</p>
  
  <p>(I'm using C++ with mingw compiler)</p>
  
  <p>Any help is highly appreciated.  </p>