跳至内容
菜单
此问题已终结
3261 查看

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)})

形象
丢弃
相关帖文 回复 查看 活动
1
11月 22
2561
7
1月 24
15191
0
3月 15
3939
0
3月 15
5126
2
9月 23
1348