Page 1 of 1

Direct link error on html!!

Posted: Fri Oct 05, 2007 10:06 pm
by Diablomus
Hi all.

"<html><head><title>asd.htm</title>
</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div><img width=140 height=182 hspace=1 vspace=1 src="C:\12345\12345.jpg"></div>
</font>
</body></html>"

I am using htmlimporter and i am loading this html file and no problem.Because this pic file in local computer.


"<html><head><title>asd.htm</title>
</head>
<body bgcolor="#ffffff" leftmargin=5 topmargin=5 rightmargin=5 bottommargin=5>
<font size=2 color="#000000" face="Arial">
<div><img width=140 height=182 hspace=1 vspace=1 src="http://mish.info/msn.jpg"></div>
</font>
</body></html>"

But i am loading this file and i cant see this pic because this is in server computer.

Is there any solution??
I am waiting your answer.
Thanks for everything...

Posted: Sat Oct 06, 2007 7:28 am
by Sergey Tkachenko
If you use RichViewActions, they can do it automatically with Indy.

If not, you should process RvHtmlImporter.OnImageRequired2 event (or, better, RichView.OnImportPicture) to download images from the remote comuter. There are two demos using Indy components:
1) http://www.trichview.com/resources/html/rvhtml_indy.zip - downloads images one by one, as soon as they appear in HTML file
2) http://www.trichview.com/resources/html ... hreads.zip - downloads images in threads. This demo allows already to display document while not all pictures are downloaded yet, but has some limitations.