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

Hey, I need to encode a file to base64 to store it as an attachment, however base64 module is not available in server actions, how to process?

아바타
취소
베스트 답변

Hello, can explain on detail how you could use base64 module on server actions.

Regards.

아바타
취소
작성자 베스트 답변

Well as you can't close or delete forum posts (wtf) heres the strange answer:


     return {
            'uid': self._uid,
            'user': self.env.user,
            'time': time,
            'datetime': datetime,
            'dateutil': dateutil,
            'timezone': timezone,
            'b64encode': base64.b64encode,
            'b64decode': base64.b64decode,
        }
아바타
취소