NextJS Handling binary data - Theo's Typesafe Cult