File.open( 'new_foo.gif', 'w' ) do |output|
     byteArray.each_byte do | byte |
          output.print byte.chr
     end
end

HTH
Robert
-- 
http://ruby-smalltalk.blogspot.com/

---
As simple as possible, but not simpler.
Albert Einstein