Help avoid a bit of python

Ah, ok. I think the basic process is right, but using codeunits(stream.read()) is wrong. The general idea is that you need to get the raw bytes from the BytesIO as a Vector{UInt8} and then you should be able to construct an IOBuffer from that vector and then load it.

1 Like