Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Embedded image
Message
From
21/11/2018 11:58:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01663614
Message ID:
01663627
Views:
54
>Hi
>I am sending out html email using foxpro. All working fine
>Now I want to embed(Rather than linked) an image into one of the columns on the html email page
>Seems to be 2 ways
>CId Content Id where you also attach the image
>Base64
>
>I am unsure as to the exact code mechanism of either
>Does anybody have any examples, and maybe ideas on which method is more resilient
>Tia
>Gerard

If you are using HTML then base64 is an easy option. ie:
text to body texmerge noshow
<p>My image here</p>
<img src="data:image/png;base64, << Strconv(FileToStr(m.lcMyPNGFile),13)  >>" />
endtext
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform