From: Vitor Peres Date: 2006-08-09T02:04:03+09:00 Subject: Re: FireRuby 0.4.1 and blob data ------=_Part_65360_20822860.1155056640871 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I don't mean to bother, but... anyone? On 8/7/06, Vitor Peres wrote: > > Hello, > > First, I would like to apologize if I am skipping any vital steps in my > ignorance. I am currently building a GTK application using Ruby, a small > data retrieval and storage thingie that deals basically with drag and > drop, > visual associations between data. A central part of it demands that I > retrieve an image from a Blob column in a Firebird database to feed a > GtkImage. > The issue I'm having is this: using blob_data.to_s locks up Ruby, and > blob_data.each raises the following exception: > > ./lib/sign.rb:19:in `each': Error reading blob segment. > (FireRuby::FireRubyException) > segment buffer length shorter than expected > segment buffer length shorter than expected > > I had tried a couple of weeks ago to import data into a blob column using > FireRuby, and retrieving them later resulted in 0 byte images. The failure > made me rewrite what I had in Python, just to get the job done -- which I > regret, since it has delayed this question and made me write Python. Am I > doing something fundamentally wrong, is there anything I seem to be > forgetting? I'm using FireRuby 0.4.1, Ruby 1.8.4 and Firebird 1.5, and the > data is certainly there, I can get it back fine using other methods. > > Thanks in advance for reading this. Any help is appreciated. > > -- > Vitor Peres > > ------=_Part_65360_20822860.1155056640871--