Base64 1.9... am I missing something here?

Surely this must work?

data = File.read('test.png')
data == [data].pack('m').unpack('m').first
#=> false

???

Shouldn't that be true?

You can find test.png at:

http://github.com/mikel/mail/blob/master/spec/fixtures/attachments/test.png

... but I don't think it is the problem.

···

--
http://lindsaar.net/
Rails, RSpec and Life blog....