AWS S3 Object (파일)의 Text String Output 처리

조회 758 · 댓글 0
고구마엔사이다작성자2022년 1월 6일
response = s3.get_object(Bucket=bucket, Key=key)

body = response['Body'].read().decode('utf-8')
print("CONTENT TYPE: " + response['ContentType'])
print("BODY: " + body)

로그인 후 답글을 남길 수 있습니다.