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

Now I want to upload a file-like to a fileds.Binary() field as below codes:

picData = StringIO.StringIO()
plt.savefig(picData)
self.write({"file": base64.encodestring(picData.getvalue())})

shall  I rename the file which is uploaded onto  the fields.Binary()--"file" as "x.xlsx"?

아바타
취소
관련 게시물 답글 화면 활동
1
12월 19
7428
0
3월 17
3256
0
11월 21
2045
5
7월 20
9123
1
2월 17
7387