From: "Jesús Gabriel y Galán" Date: 2012-11-04T06:52:41+09:00 Subject: Re: image hexcode On Sat, Nov 3, 2012 at 10:16 PM, Adriana Mikolaskova wrote: > Hello, > > how can I display an image as hexcode? I want to have the same Hex-Code, > that I get when I open the image in a Hex-Editor... If you can read the file as strings, you can show each byte of the string as hex like this: 1.9.2p290 :005 > " abc".each_byte {|x| puts x.to_s(16)} 20 61 62 63 Jesus.