From: "Iñaki Baz Castillo" Date: 2011-08-16T20:05:51+09:00 Subject: Re: How to create binary data from Ruby 2011/8/16 Robert Klemme : > There are various ways.  Off the top of my head: > > 1. Use Array#pack with 'B' or 'b'. > > 2. Use an integer to construct the whole bit data and convert it via > "%032b" % i. Thanks, using Array#pack is the way I've remembered (After reading your mail) :) Thanks a lot. -- Iñaki Baz Castillo