LoadFromFile load error!
- From: "Fun Chang" <fun_chang@xxxxxxxx>
- Date: Thu, 26 May 2005 14:42:32 +0800
Hi,all
My database is MS SQL Server 2000 SP4,my table is very large,about
94G,these codes works fine on Delphi 7
Data.q_tk.Append;
Data.q_tk.FieldByName('FILENAME').AsString:=FileArray[I];
Data.q_tk.FieldByName('FILESIZE').AsInteger:=FileSize[I];
Data.q_tkIMAGEDATA.LoadFromFile(filename);
Data.q_tk.Post;
(*
TData = class(TDataModule)
q_tk: TADOQuery; //Delphi 7 in ADO page,Delphi 2005 in dbGo page
q_tkIMAGEDATA: TBlobField; //SQL Server IMAGE data type
*)
All 94G data uploaded by the codes.
But when I upgrade codes on Delphi 2005 SP3 .net,LoadFromFile does not work
fine,for a example,a 274K file uploaded in the table will have about 200K
0x0 and at the end of 74K data is right data.
Reuses Delphi 7 complier these codes still work fine.
What's wrong (or different) with LoadFromFile? Please help me£¡
Sorry for my bad english,thanks a lot for any input!
.
- Follow-Ups:
- Re: LoadFromFile load error!
- From: Fun Chang
- Re: LoadFromFile load error!
- Prev by Date: Re: Again: How to copy a memo
- Next by Date: Multiple Step Operation
- Previous by thread: About NextRecordSet
- Next by thread: Re: LoadFromFile load error!
- Index(es):
Relevant Pages
|