On Sat, Nov 3, 2012 at 10:16 PM, Adriana Mikolaskova
<lists / ruby-forum.com> 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.