title: Treat binary data as a file object?
body: <p>In this code snippet (authored by another person), <code>self.archive</code> is a path to a large file and <code>raw_file</code> is the contents of the file read as binary data.</p>
  <pre><code>with open(self.archive, &quot;rb&quot;) as f:
      f.seek(offset)
      raw_file = start + f.read(dlen - len(start))
      ...
      f.write(raw_file)
  </code></pre>
  <p>This archive file contains stored image files, and I'd like to access them <code>pygame.image.load</code> which requires a File object. But I need to do something like <code>pygame.image.load(toVirtualFileObject(raw_file))</code> (i.e. access this archive file's contents as File objects without writing to disk first).</p>
  <p>Can this be done?</p>