Skip to Content
Menu
This question has been flagged
2 Replies
4673 Rodiniai

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?

Portretas
Atmesti
Autorius 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]

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 18
2661
2
spal. 18
7491
1
gruod. 16
6704
2
lapkr. 16
5702
1
rugp. 16
3521