const dataUrl = decryptedBytes;
const [header, body] = dataUrl.split(",");
const decodedBody = atob(body);
const byteCharacters = decodedBody.split("").map(char => char.charCodeAt(0));
const byteNumbers = new Uint8Array(byteCharacters);
const blob = new Blob([byteNumbers], {type: "image/jpeg"});