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

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
2517
7
1月 24
15147
0
3月 15
3893
0
3月 15
5098
2
9月 23
1306