How to display binary jpg data from a response as an image in display block of postman flows?

In my postman flow I receive from a request a response that is the binary data of a file, let’s say it’s an jpg. How do I convert the jpg into base64 in order to have it show in the display block of postman flows? Or how do I display the binary data in the display block in general?

Thanks

Resolved by just encoding in base64, adding mime and data uri prefix on the backend

we do intend to make this simpler.