On Wednesday 28 October 2009 02:59:27 pm Paul McNett wrote:
> John wrote:
> > On Tuesday 27 October 2009 05:42:57 pm Ed Leafe wrote:
> >> On Oct 27, 2009, at 8:22 PM, John wrote:
> >>> Currently I don't believe Dabo supports binary objects.  For example
> >>> update
> >>> does not work.
> >>
> >>    It sure does; I demonstrated that with the original port of the old
> >> Northwind database and the images that came along with that.
> >>
> >>
> >> -- Ed Leafe
> >
> > For the life of me I can't figure out how you were able to get the image
> > data into the table.  Any chance the code is lying around that demo's the
> > steps.
> >
> > I was able to create a simple file using img2py.py as suggested by the
> > doc string in dabo/dabo/ui/uiwx/__init__.py.
> >
> > I'm able to use the file created (from img2py).  I can display the image
> > data etc... by using the file created by img2py.
> >
> >
> >  The trouble comes when I need to save the image data to the database.
> > Either Dabo complains or I get a database error.  The Dabo attempts to
> > convert the data to a quoted string and if I attempt to by pass Dabo by
> > making changes then the database complains that I have an encoding
> > problem.
> >
> >
> > So if that code is around I sure would like to see it.
>
> Just a quick check: is the field defined as a BLOB in your datastructure?
> (Type L for bLob).
>
> Paul

I tried both 'Text' and 'bytea' (large Binary).  No success.  

Johnf




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to