Skip to Content
Menu
This question has been flagged
3198 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
2523
7
jan 24
15154
0
mar 15
3896
0
mar 15
5101
2
sep 23
1308