From: Vitor Peres Date: 2006-08-07T22:04:19+09:00 Subject: FireRuby 0.4.1 and blob data ------=_Part_38461_16218232.1154955856725 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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_38461_16218232.1154955856725--