mirror of https://github.com/MISP/misp-modules
commit
b1759e1e8e
|
@ -67,7 +67,7 @@ def handler(q=False):
|
||||||
image = img.make_blob('png')
|
image = img.make_blob('png')
|
||||||
log.debug("Final image size is {}x{}".format(pdf.width, pdf.height * (p + 1)))
|
log.debug("Final image size is {}x{}".format(pdf.width, pdf.height * (p + 1)))
|
||||||
else:
|
else:
|
||||||
image = document
|
image = base64.b64decode(request["data"])
|
||||||
|
|
||||||
image_file = BytesIO(image)
|
image_file = BytesIO(image)
|
||||||
image_file.seek(0)
|
image_file.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue