コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3174 ビュー

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
2510
7
1月 24
15134
0
3月 15
3889
0
3月 15
5086
2
9月 23
1304