콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3182 화면

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
2514
7
1월 24
15146
0
3월 15
3893
0
3월 15
5096
2
9월 23
1305