short_report = open('somePdfFile', 'rb')
report_encoded = base64.b64encode(short_report.read())
return Response({'detail': 'this works', 'report': report_encoded})
How do I use django rest framework to send a file in response?