Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   SQL (https://www.clubdelphi.com/foros/forumdisplay.php?f=6)
-   -   por favor alguien que me ayude tengo probelmas con un IBStored proc (https://www.clubdelphi.com/foros/showthread.php?t=22264)

luisg 10-06-2005 04:08:17

por favor alguien que me ayude tengo probelmas con un IBStored proc
 
no se como agregar guardar una imagen mediante el ibstoredproc, no se como definir el parametro ni como pasarlo he intentado de varias formas y me marca error este es el codigo:
sp:=TIBStoredProc.Create(nil);
sp.Database:=DtMdlEstetica.DbEstetica;
sp.StoredProcName:='SP_MODIFICA_EMPRESA';
sp.Params.CreateParam(ftString, 'PI_NOMBRE', ptInput).AsString:=nombre;
sp.Params.CreateParam(ftString, 'PI_DOMICILIO', ptInput).AsString:=domicilio;
sp.Params.CreateParam(ftString, 'PI_TELEFONO', ptInput).AsString:=telefono;
sp.Params.CreateParam(ftString, 'PI_PAGINAWEB', ptInput).AsString:=paginaweb;
sp.Params.CreateParam(ftBlob, 'PI_LOGO', ptInput);
bs:=TBlobStream.Create(TBlobField(sp.ParamByName('PI_LOGO')), bmReadWrite);
img:=TJPEGImage.Create;
img.Assign(logo.Picture);
img.SaveToStream(bs);
img.Free;
bs.Free;
sp.Free;


La franja horaria es GMT +2. Ahora son las 21:19:29.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi