Skip to Content
Menu
This question has been flagged
3450 Zobrazenia

or how to upload an excel file onto a field who is a field.Binary() by python code?

I have tried as below codes but failed:


test = xlrd.open_workbook('C:\Users\Administrator\Desktop\s.xlsx')

self.write({'datafile': base64.encodestring(test)})

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
nov 22
2705
7
jan 24
15338
0
mar 15
4024
0
mar 15
5226
2
sep 23
1414