lancelot626 0 Newbie Poster

I saved some images in an sqlite database but when i tried to display them using static bitmap i get an error

OnOpenEdit
    self.frmEdit.imageCtrl.SetBitmap((i[7]))
  File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py", line 1229, in SetBitmap
    return _controls_.StaticBitmap_SetBitmap(*args, **kwargs)
TypeError: in method 'StaticBitmap_SetBitmap', expected argument 2 of type 'wxBitmap const &'

here is a print of the data from sqlite

[(1, u'one', u'two', <read-write buffer ptr 0x03155C00, size 74913 at 0x03155BE0>, u'four')]

i felt it may have to do with conversion but since a lot of people don't support storing images in databases there is not much information on this.

I would also like to know if sqlite can be exported into a text file that would look like this
e.g one,two,four
Tks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.