Developer Tools
|
Office Productivity Applications
|
Enterprise Solutions
|
|||||||||||||||||||||||







TBlobStream is used to read or write to a BLOB field in a dataset. If you can write a PDF document to a BLOB field, then you can store the PDF document in an RDBMS database.
PDFtoolkit allows you to save a PDF document to a memory stream. You can then use the memory stream to copy the PDF document to a TBlobStream instance. The code snippet below shows you how.
procedure TForm1.SavetoBlobClick(Sender: TObject); var blob: TBlobStream; TempStrm: TMemoryStream; begin // Create a blob stream for writing blob := YourDataset.CreateBlobStream( YourDataset.FieldByName('YOUR_BLOB_FIELD_NAME'), bmWrite); try // Move to the beginning of the blob stream for read operations blob.Seek(0, soFromBeginning); // Create a memory stream TempStrm := TMemoryStream.Create; // Load a PDF document gtPDFDocument1.LoadFromFile('C:\Input.pdf'); // Steps for modifying the PDF omitted. // Save the PDF document to the stream gtPDFDocument1.SaveToStream(TempStrm); // Move to the beginning of the memory stream for read operations TempStrm.Position := 0; // Copy the stream to the blob try blob.CopyFrom(TempStrm, TempStrm.Size) finally TempStrm.Free end; finally blob.Free end; end;
---o0O0o---
| Our Developer Tools | |
|---|---|
eDocEngine VCLA Delphi/C++Builder component suite for creating documents in over 20 formats and also export reports from popular Delphi reporting tools. |
PDFtoolkit VCLA Delphi/C++Builder component suite to edit, enhance, view, print, merge, split, encrypt, annotate, and bookmark PDF documents. |
XtremePDFConverter VCLA Delphi/C++Builder component to intelligently convert PDF to user-friendly Word RTF documents. |
|
PDFOne .NETA .NET PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, and bookmark PDF documents in .NET applications. |
XtremeDocumentStudio .NETMulti-format document-processing component suite for .NET developers |
PDFOne (for Java™)A Java™ PDF component suite to create, edit, view, print, reorganize, encrypt, annotate, bookmark PDF documents in Java™ applications. |
XtremeFontEngine (for Java)Java font engine to render glyphs from Type 1, Type 2 (CFF), and TrueType fonts |
| Our Office Productivity Applications |
|---|
Free PDF ReaderA free, fast, and portable application for viewing, printing and converting PDF documents. |
| Privacy | Legal | Feedback | Newsletter | Resellers | © 2002-2013 Gnostice Information Technologies Private Limited. All rights reserved. |
This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows XP users are advised to use Microsoft ClearType Tuning for optimal experience. Also, please use the latest version of a standards-compliant browser such as Firefox, Opera, or Dragon (Chromium).