Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3633 Zobrazení

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šit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 22
2825
7
led 24
15582
0
bře 15
4174
0
bře 15
5350
2
zář 23
1575