[web-devel] [Yesod] How to write a field as binary data column.
Felipe Almeida Lessa
felipe.lessa at gmail.com
Mon Dec 27 13:40:27 CET 2010
[Please reply to the list as well :-)]
2010/12/27 いとうかつとし <cutsea110 at gmail.com>:
> Umm, This(B.concate . L.toChunks) don't work.
> an inserted data is incomplete, which is dropped from invisible characters.
> In my case , the image file with binary data as
> only "GIF89a^"(7bytes) can be stored.
> I think I have to escape a binary data.
> If ByteString field type means binary, I expect the yesod framework to
> escape automatically.
> How about?
That's strange and sounds like a bug. I'm using the same (B.concat .
L.toChunks) trick and it works very well for me. Are you using
up-to-date versions of all libraries?
More information about the web-devel