The picture I am using is from an MYSQL database, so I get the data and convert it using:
let binary = \'\'; let bytes = [].slice.call(new Uint8Array(buffer))