<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Thomas Kluyver wrote on 10/19/23 1:00
AM:<br>
</div>
<blockquote type="cite"
cite="mid:e073f57e-337e-4d4b-b351-08410eeab221@app.fastmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style>
<div>If it's just one specific entry you need, it's probably
simplest to manually copy and paste the values from your saved
data. You can use bytes.fromhex() to convert the hex encoded
data back to binary.<br>
</div>
</blockquote>
<p>Figured it out finally!<br>
</p>
<p>After taking the hex data from the `array of bytes []` and
putting it all on one line (keeping the spaces between each
character/byte), was able to get an image with this python code:</p>
<p>import sys<br>
from PIL import Image <br>
<br>
hexstring = "00 00 [...] 00 00"<br>
img = Image.frombytes("RGBA", (X, Y), bytes.fromhex(hexstring))<br>
img.save("output.png")</p>
<p><br>
</p>
<p>Thanks!<br>
</p>
</body>
</html>