title: convert large binary file to hexadecimal (binascii.hexlify returns MemoryError)
body: <p>I am trying to convert a large file (~1GB) into hexadecimal string with binascii (which works great on smaller files), but it causing a MemoryError.</p>
  
  <p>this is the code I am using:</p>
  
  <pre><code>import binascii
  
  filePath = "demo/11.mp4.zip"
  
  file = open(filePath, "rb")
  with file:
      byte = file.read()
      hexa = binascii.hexlify(byte)
  
  hexa_string = hexa.decode('ascii');
  </code></pre>
  
  <p>any advice?</p>