Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4744 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 18
2731
2
okt. 18
7557
1
dec. 16
6794
2
nov. 16
5792
1
avg. 16
3597