Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Image of html-file is not shown Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
t.kehl
Newbie
Newbie


Joined: 09 June 2016
Location: Switzerland
Online Status: Offline
Posts: 1
Posted: 09 June 2016 at 12:35pm | IP Logged Quote t.kehl

Hi

I use the following Code to extract html (and the related pictures) from mht-files:

            var msg1 = new MailBee.Mime.MailMessage();
            msg1.LoadMessage("..\\..\\test2.mht");
            msg1.SaveHtmlAndRelatedFiles("..\\..\\test2\\test2.html");

When I do this the result are 2 files:

test2.html
Kanopeo_1-4FooterMail-2016_jc.png

This is the content of test2.html:

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
    <p><font face="Calibri">Guten Tag Herr Schoof,</font></p>
    <p><font face="Calibri">darf ich Sie eine Offerte für 100 St
        verlangen Bitte?</font></p>
    <p><font face="Calibri">Danke dür Ihre Antwort</font></p>
    <p><font face="Calibri">Jacques Christinet</font><br>
    </p>
    <div class="moz-signature"><img src='\Kanopeo_1-4FooterMail-2016_jc.png' border="0"></div>
</body>
</html>

when I open the html in a browser (for example firefox or IE), the image is not shown. It will only be shown, when I change the src of the img from

src='\Kanopeo_1-4FooterMail-2016_jc.png'

to

src='Kanopeo_1-4FooterMail-2016_jc.png'

Can you help me, why this is the case? What does I have to do, that the src will be correct and the image is shown when I open the html-file?

Thank you.

Best Regards, Thomas
Back to Top View t.kehl's Profile Search for other posts by t.kehl
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 09 June 2016 at 1:59pm | IP Logged Quote Alex

Hi Thomas,

Did you try to specify a path in simpler way? "..\\..\\test2.mht" looks a bit "special". Try something simple, like "C:\\Temp\tests.mht" first.

Does it help?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide