# Base64 1.9... am I missing something here?

**URL:** <https://www.ruby-forum.com/t/base64-1-9-am-i-missing-something-here/175816>\
**Category:** Ruby\
**Created:** [September 20, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/base64-1-9-am-i-missing-something-here/175816 "2009-09-20T16:40:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [September 20, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/base64-1-9-am-i-missing-something-here/175816/1 "2009-09-20T16:40:20Z")

</div>

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:

> <https://github.com/mikel/mail/blob/master/spec/fixtures/attachments/test.png>

… but I don’t think it is the problem.
