C chhuan123 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #1 delphi 可以post数据流吗?找了很多资料,没找到一个提及的,快被这个问题给憋死了[]```...
S siking Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #3 bmp1:=TBitmap.Create; jpg1:=TJpegImage.Create; try jpg1.LoadFromFile(sFileName); bmp1.Assign(jpg1); adoquery1.Edit; adoquery1.FieldByName('tupian').Assign(bmp1); adoquery1.post; finally jpg1.Free; bmp1.Free; end;
bmp1:=TBitmap.Create; jpg1:=TJpegImage.Create; try jpg1.LoadFromFile(sFileName); bmp1.Assign(jpg1); adoquery1.Edit; adoquery1.FieldByName('tupian').Assign(bmp1); adoquery1.post; finally jpg1.Free; bmp1.Free; end;
C chhuan123 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #4 TBitmap,TJpegImage,adoquery1在哪个名空间?我想把一个字符串或一个xml post到一个url...
B ball_cao Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #5 可以的 您可以使用TIdHTTP的post方法 procedure TForm1.Button4Click(Sender: TObject); var param: TMemoryStream; begin param:= TMemoryStream.create; param.LoadFromFile(aa.xml); try restClient.Post('http://localhost:1024/admin/10001',param); except end; end; 我用的是delphi7
可以的 您可以使用TIdHTTP的post方法 procedure TForm1.Button4Click(Sender: TObject); var param: TMemoryStream; begin param:= TMemoryStream.create; param.LoadFromFile(aa.xml); try restClient.Post('http://localhost:1024/admin/10001',param); except end; end; 我用的是delphi7
C chhuan123 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #6 TMemoryStream 属于哪个名空间?我用的是deiphi 2005 ,TIdHTTP好象是面向win32的,我在deiphi 2005环境下对TIdHTTP用不成功