相关疑难解决方法(0)

将pdf文件转换为base64Binary的最佳方法是什么?

使用python,我想 convert a pdf file into base64Binary

我的逻辑(不是python)是将文件的内容读入一个字节数组,然后使用类似的东西Convert.ToBase64String() method得到Base64 string:

byte[] pdfBytes = File.ReadAllBytes(pdfPath);
string pdfBase64 = Convert.ToBase64String(pdfBytes);
Run Code Online (Sandbox Code Playgroud)

请告诉我convert a pdf file into base64Binary在python中正确的方法是什么

python pdf ipython python-2.7 python-3.x

2
推荐指数
1
解决办法
6347
查看次数

标签 统计

ipython ×1

pdf ×1

python ×1

python-2.7 ×1

python-3.x ×1