![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 4 of 4 total |
![]() |
Thu, May 18 2006 1:14 PM | Permanent Link |
John | I have an existing table in version 3.0 format that contains a blob field which contains a compressed pdf file. How do I extract that pdf from the blob field into a readable pdf file?
Thanks |
Thu, May 18 2006 2:03 PM | Permanent Link |
Roy Lambert NLH Associates ![]() | John
Something like TMemoField(FilAttMgr.FieldByName('_Item')).SaveToFile(PutTo); will save it to disk and ShellExecute(Application.Handle, nil, Pchar(#34 + PutTo + #34), nil, nil, SW_SHOWNORMAL); will display it. Roy Lambert |
Thu, May 18 2006 3:52 PM | Permanent Link |
"Mike Shkolnik" | blob := yourDataset.CreateBlobStream(yourDataset.FieldByName('YOUR_BLOB'),
bmRead); try blob.Seek(0, soFromBeginning); with TFileStream.Create('c:\your_name.pdf', fmCreate) do try CopyFrom(blob, blob.Size) finally Free end; finally blob.Free end; -- With best regards, Mike Shkolnik E-mail: mshkolnik@scalabium.com WEB: http://www.scalabium.com "John" <tswitz00@aol.com> wrote in message news:064562C8-1904-4FE3-B206-D09576B16B1B@news.elevatesoft.com... > I have an existing table in version 3.0 format that contains a blob field which contains a compressed pdf file. How do I extract that pdf from the blob field into a readable pdf file? > > Thanks > |
Thu, May 18 2006 6:11 PM | Permanent Link |
John | Thanks for the reply, I think that will do it.
|
This web page was last updated on Monday, July 7, 2025 at 06:35 PM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |