From: Alexis Alulema Date: 2009-09-05T00:36:16+09:00 Subject: Re: write byte array to file Cool, that was great and it finally worked. Thank u very much. Tim Hunter wrote: > Alexis Alulema wrote: >> File.open('E:\\UpdatePackage\\Materials\\coco2.jpg', 'w' ) do |output| >> a.each do | byte | >> output.print byte.chr >> end >> end > > Open the file with "wb"'. -- Posted via http://www.ruby-forum.com/.