IClojure icon indicating copy to clipboard operation
IClojure copied to clipboard

Can you display a png ?

Open didibus opened this issue 6 years ago • 0 comments

Hey, I'm trying to display a png, but it doesn't seem to work.

I'm doing #unrepl/mime {:content-type "image/png" :content chart} where chart is a base64 encoded byte array of the png's content. I also tried with Base64 mime encoder, also did not work.

Now, I'm a bit confused, because if you just do: #unrepl/mime {:content-type "image/png" :content "123"} it shows the broken image logo as a result. So it is making believe that it should work, but it isn't it seems.

didibus avatar Feb 15 '19 06:02 didibus