Email::Store::Attachment - my losing battle

dakkar dakkar at thenautilus.net
Wed Nov 29 14:27:27 GMT 2006


Chisel Wright wrote:
> I'm sure I'm missing something really obvious and dumb though ...

You are writing a JPEG into a TEXT field. Your PostgreSQL db is set up
to accept UTF-8 encoded text. A JPEG is not UTF-8 encoded text: it's not
text at all ;-)

I think that Email::Store::Attachment gives you the MIME-decoded data,
so you should either:
- not store parts with type !~ m{^text/}
- use a BLOB/BINARY field

-- 
	Dakkar - <Mobilis in mobile>
	GPG public key fingerprint = A071 E618 DD2C 5901 9574
	                             6FE2 40EA 9883 7519 3F88
	                    key id = 0x75193F88


More information about the london.pm mailing list