IClojure
IClojure copied to clipboard
Can you display a png ?
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.