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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs