Subject | RE: [firebird-support] updating blob field with stored procedure |
---|---|
Author | Alan McDonald |
Post date | 2004-10-21T12:37:38Z |
> this works fine ! :)))))))Dlg.FileName,
>
> DataSet.CommandType := ctStoredProc;
> DataSet.CommandText := 'SP_DO_USER_PICTURE';
> DataSet.Params.ParamByName('fk_user_id').AsInteger := CurrentUserID;
>
> DataSet.Params.ParamByName('user_picture').LoadFromFile(GetPicture
> ftGraphic);sure but if you want you can bring things in from the clipboard too - it's
> DataSet.ExecSQL;
> DataSet.Close;
>
more convenient for the user.
Alan
if (ClipBoard.HasFormat(CF_BITMAP) or ClipBoard.HasFormat(CF_METAFILEPICT)
or ClipBoard.HasFormat(CF_PICTURE)) then
IB_Image1.Picture.Assign(ClipBoard)
else
MessageDlg('There is no graphic image on the Clipboard', mtInformation,
[mbOK],0);