kooloveme / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

showing image given with path #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I use your htmlviewer as an email-viewer. In most of the cases I get best 
results. 

Only by  displaying an image that ist defined in src like this I have problems:

src="http://www.xxxxxxx.bayern.de/img/cmsimage.php/1000x700/acb6d211e9b71cbc66c8
9abcc2829d5c.jpg"

In htmlviewer I get the symbol for an empty image. See attached file.

Is this generelly possible? 

Which code in which event??

Thanks

Josef

Original issue reported on code.google.com by infojose...@gmail.com on 5 Mar 2014 at 5:55

Attachments:

GoogleCodeExporter commented 9 years ago
Josef,

the pure THtmlViewer component supports references to local files only. To load 
files from internet or other "protocols" than "file::" you must use 
TFrameBrowser and additional components like the Indy or ICS components to get 
the files.

Please look at the FrameBrowserUsing* demo applications for details. You can 
use one of the demo UrlCon* units to integrate the "http::" protocol.

OrphanCat

Original comment by OrphanCat on 5 Mar 2014 at 7:12

GoogleCodeExporter commented 9 years ago
Thanks for answer,

but I cann't get the right way.

I use the synapse units to get the mail. 

An email looks like this:

Return-Path: <info@buckfast-bayern.de>
Delivered-To: info@josefkoller.de
Received: from mx-l.one.com (mx-l.one.com [91.198.169.59])
    by mail123.local (Postfix) with ESMTP id 3E0A63005ED11F
    for <info@josefkoller.de>; Wed, 26 Feb 2014 15:23:07 +0000 (UTC)
X-Virus-Scanned: by one.com
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-out2.b-one.net (mail-out2.one.com [91.198.169.19])
    by mx-l.one.com (Postfix) with ESMTP id 1BA4020B97133
    for <info@josefkoller.de>; Wed, 26 Feb 2014 15:23:07 +0000 (UTC)
Received: from www.buckfast-bayern.de (web183.local.one.com [10.246.64.183])
    by mail-out2.b-one.net (Postfix) with ESMTP id 08D512A1E3
    for <info@josefkoller.de>; Wed, 26 Feb 2014 16:23:07 +0100 (CET)
Date: Wed, 26 Feb 2014 15:23:07 +0000
To: Koller Josef <info@josefkoller.de>
From: "LV Buckfastimker Bayern e.V" <newsletter@buckfast-bayern.de>
Subject: Newsletter 02/2014
Message-ID: <1f2a81528ff3d5abad3cbb9a7245891f@www.buckfast-bayern.de>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73.2]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"

<script type="text/javascript" src="/global.js"></script>
<table border="0" cellpadding="1" cellspacing="1" height="29" width="799">
    <tbody>
        <tr>
            <td style="text-align: left; vertical-align: bottom;"><img alt="" src="http://www.buckfast-bayern.de/img/cmsimage.php/1000x700/acb6d211e9b71cbc66c89abcc2829d5c.jpg" style="width: 342px; height: 87px;" /></td>
....

I decoded this eamil now with 

part.DecodedLines.SaveToFile(pfad+'tmp.txt'); //save the message part to a file
FrameBrowser1.LoadFromfile(pfad+'tmp.txt'); // load the file into the 
framebrowser

with this method I get the Document text. Like this
...
<img class=3D"blankgif" border=3D"0" src=3D"http://videoclipein=
trag.eu/nl2014/national/images/blank.gif" alt=3D"" style=3D"height: 1px;
...

You see, I have no idea.

Do you have some lines of code to get my images?

Thanks again

Josef

Original comment by infojose...@gmail.com on 8 Mar 2014 at 5:41

GoogleCodeExporter commented 9 years ago
Can you post or email such a saved file, please?

Original comment by OrphanCat on 15 Mar 2014 at 11:45

GoogleCodeExporter commented 9 years ago
Josef,

I'm think about publishing my private loader units, which handle loading files 
from local file systems and via protocols http[s], ftp, ...

Additional (user defined) protocols can be registered.

OrphanCat

Original comment by OrphanCat on 15 Mar 2014 at 12:19