From: Rajesh Olafson Date: 2008-06-12T07:08:11+09:00 Subject: Re: write byte array to file ------=_Part_32118_7057964.1213222111164 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > >> 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'. > Thank you. no. I use linux ubuntu. shold have said that before. With my file write I just get text in the file. Not binary. ? Rajesh. > -- > RMagick: http://rmagick.rubyforge.org/ > RMagick 2: http://rmagick.rubyforge.org/rmagick2.html > > ------=_Part_32118_7057964.1213222111164--