[odb-users] cannot load image bytes through section

Andrew Cunningham odb at a-cunningham.com
Fri Dec 23 19:10:26 EST 2016


Hi Christian,
Boris posted this message on the list recently.... if you have Linux you
will have to build the ODB compiler from the source.

Andrew

....
I've built another pre-release with the fix. Can you confirm everything
is working now?
http://codesynthesis.com/~boris/tmp/odb/pre-release/a11/
......


On Fri, Dec 23, 2016 at 3:59 PM, Christian Sell <christian at gsvitec.com>
wrote:

> thanks. where would I get that from?
> -C
>
> > Andrew Cunningham <odb at a-cunningham.com> hat am 24. Dezember 2016 um
> 00:18 geschrieben:
> >
> >
> > Christian,
> > There have been several fixes to 2.4.0 with regards to sections. Try the
> > latest 2.5.0a11
> >
> > Andrew
> >
> > On Fri, Dec 23, 2016 at 2:43 PM, Christian Sell <christian at gsvitec.com>
> > wrote:
> >
> > > hello,
> > >
> > > I am using SQLite, and heres my mappping
> > >
> > > #pragma db type("BLOB") section(image_section)
> > > std::vector<unsigned char> image_data;
> > >
> > > heres the code:
> > >
> > > odb::ransaction tr(database->begin());
> > > database->load(*obj, obj->image_section);
> > >
> > > the data in the database is perfect, and it was written through the
> same
> > > mechanism. However, when loading, I get a correct size in
> > > image_data.size(), but the data inside image_data is garbage
> > >
> > > can anyone help?
> > > thanks, Christian
> > >
> > >
>


More information about the odb-users mailing list