Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Webbrowser
Wed, Jun 4 2014 2:55 AMPermanent Link

Viktor

In Delphi 5 I have written an application in which displaying pdf files in the component WebBrowser

Data from DBISAM database (version 3.3) I save command
TBlobField (DBISAMQuery1.FieldByName ('test')). SaveToFile (path + 'historie.pdf');

and then I show FILE.PDF
WebBrowser1.Navigate (path + 'historie.pdf');

It is possible to view pdf files directly from the database DBISAM in WebBrowser component via stream?
If yes, please give me some code.

Thank you in advance for your help.
Wed, Jun 4 2014 3:25 AMPermanent Link

Matthew Jones

Viktor wrote:

> It is possible to view pdf files directly from the database DBISAM in
> WebBrowser component via stream?  If yes, please give me some code.

To do so, you need to have a web server in operation. I know that Indy,
with additional code, can do what you want, but the code I have is part
of RemObjects SDK, and certainly won't be good for Delphi 5. However,
you probably have Indy or something similar in D5, so have a look at
how to load a response from Stream. This quickly becomes a general
issue and not a DBISAM one.

--

Matthew Jones
Image