[odb-users] cannot load image bytes through section
Christian Sell
christian at gsvitec.com
Sat Dec 24 07:05:58 EST 2016
ok, thanks. Took me a day to build and install, but now loading binary data through a section works. Seems it was simply broken in 2.4.0.
Chris
> Andrew Cunningham <odb at a-cunningham.com> hat am 24. Dezember 2016 um 01:10 geschrieben:
>
>
> 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