Subject Re: [IBO] Blob insert woes...
Author Jason Wharton
Why are you doing Edit and then Append?

If you are doing batch inserts do not use a buffered dataset. See the
BlobInserts sample application please.

The error you are getting is from the server. IBO is just letting you know
about it.

HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Admin" <dkeith@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, March 16, 2001 1:16 PM
Subject: Re: [IBO] Blob insert woes...


> Jason -
>
> Thanks a bunch for your help. Below is the code that I switched to. I'm
> still getting the same error at the 'append' or 'insert' point - the
> error comes from the TIBOInternalDataset: conversion error from
> string'''' Error 335544334. Incidentally, table1 is a TIBOTable.
>
> TIA
>
> David Keith
>
> procedure TForm1.BitBtn2Click(Sender: TObject);
> var
> st : TStream;
> begin
> try
> with table1 do
> begin
> open;
> edit;
> append;
> st := CreateBlobStream(table1Graphic,bmWrite);
> image.Picture.Graphic.SaveToStream(st);
> FieldByName('graphicname').value :=
> extractFileName(edit1.text);
> FieldByName('"VERSION"').value := 1;
> post;
> end;
>
> Jason Wharton wrote:
> >
> > TBlobStream is for BDE based blob handling only. Use the
> > TDataset.CreateBlobStream( ) method instead.
> >
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>