How to read content of a file as string using python
I am trying to read the content of a pdf file as string using the below code
contentInFile = client.file(file_id = 'fileID').content().decode(encoding='utf-8', errors='ignore')
But i am still getting the result as bytes. Is there any other way to do it besides downloading the file in local?
Thanks
サインインしてコメントを残してください。
コメント
0件のコメント