Вниз
Скачать: CL | DM;

Insert Blob in the table   Найти похожие ветки 

← →
Octav   (2002-03-23 16:05) [0]

With IBQuery1 do
Begin
SQL.Add("insert into B01(ID01,Name,foto) values(:p1,:p2,:p3)");
ParamByName("p1").AsString := "xxxxxx";
ParamByName("p2").AsString := "xxxxxx";
j:=TJpegImage.Create;
j.LoadFromFile("C:\1.jpg");
s:=TMemoryStream.Create;
j.SaveToStream(s);
Как поставить Blob в p3 ??????????????????
ExecSQL;
j.Free;
s.Free;
End;


← →
Malder ©   (2002-03-24 12:10) [1]

Кроме AsString у ParamByName есть еще и asBlob, LoadStream или как то так... посмотри, попробуй



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.007 c
1-46319
helga
2002-04-02 18:00
2002.04.15
CopyFile


1-46457
@andrew
2002-04-03 11:36
2002.04.15
ПРИВЕТ ВСЕМ! Как создать форму внутрях DLL - все ясно,


1-46376
sammy
2002-04-01 08:09
2002.04.15
com файлы


4-46534
Fellomena
2002-02-12 16:10
2002.04.15
MessageBox() and ShowMessage() - some troubles или


1-46338
aaasv
2002-04-03 14:05
2002.04.15
всплывающее стандартное меню




   Наверх