Handling Large Blobs easy
Why do we sometimes convert binary images to Base64 strings?
- A To make them smaller.
- B To embed them safely in text-based formats like JSON, HTML, or Emails.
- C To hide them.
- D To improve quality.
Answer: B. To embed them safely in text-based formats like JSON, HTML, or Emails.
Base64 increases size by ~33% (storage overhead) but ensures the data survives transport through systems that might mangle raw binary bytes.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- Why do modern sites serve images in WebP or AVIF format?
- What does the acronym BLOB stand for?
- What is an 'Origin Shield' or 'Mid-Tier Cache' in a CDN architecture?
- For a feed with 100 images, why use 'Lazy Loading'?
- How does HLS/DASH handle a user moving from WiFi to 4G (Variable Bandwidth)?
- To avoid overloading the Application Server with bandwidth, how should a client upload a 10GB file?