Re: JPEG Pictures in ADO
- From: "Anders Balslev" <ab@xxxxxxxxxxxxx>
- Date: Wed, 19 Oct 2005 09:05:40 +0200
Oops - Yes I had.
And now it works
Thank you so much
- Anders
"Viatcheslav V. Vassiliev" <support@xxxxxxxxxxxxxxx> skrev i en meddelelse
news:4355ecdd@xxxxxxxxxxxxxxxxxxxxxxxxx
> You probably have TDBImage or another control attached to this field.
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
> "Anders Balslev" <ab@xxxxxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
> news:4355e994$1@xxxxxxxxxxxxxxxxxxxxxxxxx
> > Thank you - however, unfortunately, it did not succeed
> > My native DB is MSSQL server (2000)
> > In this I have created a table, with a field intended to hold the JPEG
> > image
> > If I in the DB define the field as "Image", The ADO table translates
it -
> > as
> > expected - as a TBlobField (when it is imported as a persistant field).
> > When the piece of code runs, following errormessage appear:
> > - "Bitmap Image is not valid"
> >
> > I then try to define the native fieldtype as "Binary". Here the ADO
table
> > translates it into a TBytesField.
> > TBytesField and TBlobField are incompatible, and attempting to run the
> > piece
> > of code, raises the exception "Invalid Typecast"
> >
> > What can I do??
> > - Anders Balslev
> >
> > "Brian Bushay TeamB" <BBushay@xxxxxxxxx> skrev i en meddelelse
> > news:7tebl11u68vl4qj7q6fddnv0vvi0bnbuq0@xxxxxxxxxx
> >>
> >> >Can anyone make a small piece of code thet stores the JPEG Image in a
> > field
> >> >(field type??) in a table.
> >> >Assume the image is located at:
> >> >C:\My Documents\Pictures\MyPicture.JPG
> >> >Apparently, DBImage work only on BITMAP (?) which consumes huge amount
> >> >of
> >> >memory/disk space
> >>
> >> with yourDataset do begin
> >> Edit;
> >> (fieldbyName('YourJpegField') as Tblobfield).loadfromFile('C:\My
> >> Documents\Pictures\MyPicture.JPG');
> >> Post;
> >> end;
> >> end;
> >> --
> >> Brian Bushay (TeamB)
> >> Bbushay@xxxxxxxxx
> >
> >
>
>
.
- References:
- JPEG Pictures in ADO
- From: Anders Balslev
- Re: JPEG Pictures in ADO
- From: Brian Bushay TeamB
- Re: JPEG Pictures in ADO
- From: Anders Balslev
- Re: JPEG Pictures in ADO
- From: Viatcheslav V. Vassiliev
- JPEG Pictures in ADO
- Prev by Date: Re: JPEG Pictures in ADO
- Next by Date: Re: How to do Running Sum?
- Previous by thread: Re: JPEG Pictures in ADO
- Next by thread: ADO vs Advantage
- Index(es):
Relevant Pages
|