Skip to Content
Menú
This question has been flagged
2 Respostes
4560 Vistes

I have a binary field that holds my excel file and I need to read the data from it. I need to get the data as rows. How can I achieve this?

Can anyone help?

Avatar
Descartar
Autor Best Answer

I got the answer.

Use xlrd to read the file as given below.


from xlrd import open_workbook

import base64

wb = open_workbook(file_contents = base64.decodestring(obj.file))

sheet = wb.sheets()[0]

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de des. 18
2588
2
d’oct. 18
7402
1
de des. 16
6608
2
de nov. 16
5594
1
d’ag. 16
3419