AW: [V4RB] Pictures from Win32
Schiller, Carsten
c.schiller at BioVisioN.de
Tue Feb 25 16:43:37 CST 2003
Hi Ruslan!
> Von: Schiller, Carsten [mailto:c.schiller at biovision.de]
> Gesendet: Donnerstag, 20. Februar 2003 15:33
>
> > Von: Ruslan Zasukhin [mailto:sunshine at public.kherson.ua]
> > Gesendet: Donnerstag, 20. Februar 2003 15:13
> >
> >> on 2/20/03 1:42 PM, Schiller, Carsten at
> > >
> > > I'm saving the image from an Imagewell in RB to Valentina
> > simplified like
> > > this:
> > > mDataBase.mPerson.PicFld.SetPicture(Main_window.ImageWell1.Image)
> > > mDataBase.mPerson.AddRecord
> > > mDataBase.Flush
> > >
> > > To load a stored Picture I do:
> > > localCursor = mDataBase.SqlSelect("SELECT * FROM TestTable")
> > > Imagewell1.image =
> VPicture(localCursor.Field("Pic_fld")).GetPicture
> > >
> > > This works seperatly on MacOSX and Win32. If the databases
> > are shared (i.e.
> > > open DB created on MacOSX on Win32 or vice versa) I have
> > the problem that I
> > > can open pictures from DBs made on MacOSX perfectly on
> > Win32, but if I try
> > > to get a picture from a DB created on Win32 on MacOSX the
> > RB App crashes
> > > immediately when assigning the VPicture.GetPicture.
> > >
> > > Am I doing something wrong here, or has someone experienced
> > something
> > > similar?
> >
> > Hard to say.
> >
> > Please check example of V4RB.
> > Run it on both platforms and check if it works for you.
> >
> Been there, crashes...
Sorry Ruslan, but is this meant to work? It looks like there is something in
the Picture fields if you get it as raw data. Looks like endian trouble, but
why does it work from OSX to Win32 then? Since our app runs on both
platforms it would be nice to be able to exchange the databases.
More information about the Valentina
mailing list