J
John Hahn
Ok, here's a snippet of my code.
@image_array = Array.new
@image = File.open("test.JPG", "rb") do |image|
image.each_byte{|ch| @image_array << ch.to_s}
end
@temp = @image_array.pack("m*")
when I display the value of @temp.. only the first element of
@image_array has been packed.. any idea why the * isn't working? I
thought the * meant that it would cycle through the entire array and
convert each element... any ideas?
@image_array = Array.new
@image = File.open("test.JPG", "rb") do |image|
image.each_byte{|ch| @image_array << ch.to_s}
end
@temp = @image_array.pack("m*")
when I display the value of @temp.. only the first element of
@image_array has been packed.. any idea why the * isn't working? I
thought the * meant that it would cycle through the entire array and
convert each element... any ideas?