Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response.body = "����JFIF��C..."
- response.headers["content-type"] = image/jpeg
- let imageData = "data:" + response.headers["content-type"] + ";base64," + new Buffer(response.body).toString('base64');
- // "data:image/jpg;base64,77+977+977+977+9ABBKRklGAAEBAAABAAEAAO...";
- var image = new Image();
- image.src = response.processImage;
Add Comment
Please, Sign In to add comment