跳至內容
選單
此問題已被標幟
3178 瀏覽次數

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
2511
7
1月 24
15134
0
3月 15
3889
0
3月 15
5088
2
9月 23
1305