title: Convert .bin to .png or .jpg on a server
body: <p>I am uploading images from an iPhone to my server. The code that I'm using converts the image to binaries (with a .bin extension). I would like to transform these into .png or .jpg so I can then reference them back on my app when making a UIImage.</p>
  
  <p>If this can be done in php, great. Otherwise I'm open to all solutions.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p><a href="http://ericbrotto.com/test/upload/sample@2x.bin" rel="nofollow">Here is a link to the file.</a></p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Fixed link :)</p>