Skip to Content
Menu
This question has been flagged
3656 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
2835
7
jan 24
15600
0
mar 15
4188
0
mar 15
5369
2
sep 23
1581