Answers for "convert pdf to base64 in python"

1

convert pdf to base64 python

# credit to the Stack Overflow user in the source link

import base64

with open("book.pdf", "rb") as pdf_file:
    encoded_string = base64.b64encode(pdf_file.read())
Posted by: Guest on June-02-2021

Code answers related to "convert pdf to base64 in python"

Python Answers by Framework

Browse Popular Code Answers by Language