# Download PNG image
curl https://tcpdata.com/image/png -o image.png
fetch('https://tcpdata.com/image/png')
.then(res => res.blob())
.then(blob => {
const img = document.createElement('img');
img.src = URL.createObjectURL(blob);
document.body.appendChild(img);
});
import requests
response = requests.get('https://tcpdata.com/image/png')
with open('image.png', 'wb') as f:
f.write(response.content)