请说的清楚一点,是把文件已二进制的形势保存的数据库马?
TFileStream* ComposedFile = new TFileStream(filename,fmOpenRead);
iFileLength = ComposedFile->Size;
//文件的大小
//RzEdit5->Text = IntToStr(iFileLength);
//Summation = Summation + iFileLength;
//相同文件名的总大小
// Size = Summation;
Main_DataModule->ADOQuery1->Last();
Main_DataModule->ADOQuery1->Append();
Main_DataModule->ADOQuery1->Edit();
Main_DataModule->ADOQuery1->FieldByName("MAP_ID")->AsString =IntToStr( Main_DataModule->ADOQuery1->RecordCount+1);
Main_DataModule->ADOQuery1->FieldByName("MAP_FILENAME")->AsString = ExtractFileName(FileText);
Main_DataModule->ADOQuery1->FieldByName("MAP_EXTENDNAME")->AsString = strExtendedName;
Main_DataModule->ADOQuery1->FieldByName("MAP_SIZE")->AsFloat = iFileLength;
((TBlobField*)(Main_DataModule->ADOQuery1->FieldByName("MAP_CONTENT")))->LoadFromStream(ComposedFile);
Main_DataModule->ADOQuery1->Post();
如果是的话你可以看一下这段代码