From: Tim Hunter Date: 2008-06-12T06:31:15+09:00 Subject: Re: write byte array to file Rajesh Olafson wrote: > Helo > > I have method that read a binary file - maybe a image, and return a byte > array. > > I want write the byte array to another file. But I keep writing the bytes as > text. I want binary. > > What need I do? > > Rajesh. > I'm guessing that you're on Windows. Open the file with the 'b' flag, i.e. 'wb'. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html