Skip to Content
मेन्यू
This question has been flagged
2 Replies
4680 Views

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
1
दिस॰ 18
2669
2
अक्तू॰ 18
7500
1
दिस॰ 16
6715
2
नव॰ 16
5711
1
अग॰ 16
3532