From: Alexandro Kez Date: 2009-12-08T01:35:32+09:00 Subject: Re: Reading Images Length of specified data doesn't correspond to format and type parameters passed. Calculated length: 1000000 (ArgumentError) Well I guess OpenGL uses integers and floats instead of Strings, I just don't get it why ruby does. > Do you have to unpack? I don't know the GL API but I doubt it would > require to unpack the String. Did you test what happens when you > unpack? You get an Array full of ints. That does not look like a > type that a low level graphics rendering library would use. Methinks > GL would rather use a String (as the Ruby type for binary data). What > do the docs say? > > Kind regards > > robert -- Posted via http://www.ruby-forum.com/.