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:
… but I don’t think it is the problem.
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:
… 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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs