I have a byte string returned from API and store in response.content
response.content
With small content, I can save it into a file with no problem using the following code