← Back to Home

JPEG Image

/image/jpeg
Returns a sample JPEG image. Useful for testing image loading and rendering.

Examples

curl
# Download JPEG image
curl https://tcpdata.com/image/jpeg -o image.jpg
JavaScript (fetch)
fetch('https://tcpdata.com/image/jpeg')
  .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/jpeg')
with open('image.jpg', 'wb') as f:
    f.write(response.content)