تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3179 أدوات العرض

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
نوفمبر 22
2511
7
يناير 24
15134
0
مارس 15
3889
0
مارس 15
5088
2
سبتمبر 23
1305