Transform a base 64 encoded string into a downloadable pdf using django rest framework
<p>I have a django/python3 application that requests the Limesurvey API and gets a base 64 encoded string as result.
I'd like to return this result as a downloadable pdf file.</p>

<p>Here's my current implementation that's simply display the base 64 string into a blank page...</p>

<pre><code>    data = limesurvey.export_responses_by_token(survey_id, token)
    response = HttpResponse(data, content_type='application/pdf')
    return StreamingHttpResponse(response)
</code></pre>

<p>Any help would be very appreciated!</p>