From: jeljer te Wies Date: 2009-03-23T07:43:45+09:00 Subject: Re: convert PNG to hex This is what i now tried (image is ofcourse a array so I did 2 just to test it) but it's not working :( f = File.new("PNG.png") image = f.readlines puts sprintf ("%X", image[2]) -- Posted via http://www.ruby-forum.com/.