On Thursday 29 October 2009 11:32:00 am Paul McNett wrote:
> {{{
> import dabo
> from dabo.lib import getRandomUUID
>
> picdata = buffer(open("ss/resources/icon_green_16px.png").read())
>
> con = dabo.db.connect(":memory:")
> cur = con.cursor()
> cur.execute("create table test (id PRIMARY KEY, img BLOB)")
>
> biz = dabo.biz.dBizobj(con, DataSource="test", KeyField="id")
> biz.DefaultValues["id"] = getRandomUUID
>
> biz.new()
> biz.Record.img = picdata
>
> print len(biz.Record.img)
>
> biz.save()
> biz.requery()
>
> print len(biz.Record.img)
>
> }}}

At least it's good to know that Larry and I were not complete.  I created a 
ticket.

Thanks for you help.

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