This is a guess of sorts but I think if you load TGifImage into your project this error might go away for the Graphic field.
I generally use a FileStream to stream the file into the field like this: procedure LoadImage(fld: TBlobField; const sFile: String); var fs: TFileStream; begin fs := TFileStream.Create(sFile, fmOpenRead); try fs.Position := 0; fld.LoadFromStream(fs); finally fs.free; end; end; On Tue, Mar 15, 2011 at 5:00 PM, SoftTech <mi...@softtechks.com> wrote: > Greetings All, > > I'm experimenting with my first Web Service by creating a program to read > weather info off the internet. > > I have an in-memory dataset (TClientDataset) that I tried adding either a > TGraphicField or a TBlobField to for storing a 32x32 gif image. > > During an append operation I'm trying to use the following code to add a > gif to this TCleintDataset > > cdsWeatherForcastIMAGE.LoadFromFile('C:\WeatherServices WSDL Web Service > Example\weather icons\' + cdsWeatherInfoFILENAME.AsString); > > It errors out with "Bitmap image is not valid" as soon as that line is > fired. > > Any ideas what I may be doing wrong? > > Thanks, > Mike > > > > __________________________________________________ > Delphi-Talk mailing list -> Delphi-Talk@elists.org > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk > __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk