← Back to Home

PNG Image

/image/png
Returns a sample PNG image. Useful for testing image loading and rendering.

Examples

curl
# Download PNG image
curl https://tcpdata.com/image/png -o image.png
JavaScript (fetch)
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);
  });
Python (requests)
import requests

response = requests.get('https://tcpdata.com/image/png')
with open('image.png', 'wb') as f:
    f.write(response.content)