EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB12559: How to embed an image into an HTML document without the use of a web server in MicroStrategy Narrowcast Server


Community Admin

• Strategy


Articles outlines how to embed an image into an HTML document without the use of a web server in MicroStrategy Narrowcast Server

To successfully embed an image (jpeg and gif files) into a Strategy Narrowcast Server 8 service that delivers HTML content without the use of a web server or shared file location, follow the steps below:
 

  • Create an Imported File. Import the .gif or .jpg file into the Strategy Narrowcast Server repository by creating a Narrowcast Imported File. In the image below, a file called MSTRLogo.gif (displays the Strategy Logo) is being imported and the name of the resulting file is importFile:
ka04W000000OeYWQA0_0EM440000002BgK.gif
  • Create a new Imported Document, as shown below:
ka04W000000OeYWQA0_0EM440000002BgL.gif
    • When the Imported Document Editor window appears, select 'Use an existing imported file' and import the imported file created in step 1, as shown below:
ka04W000000OeYWQA0_0EM440000002BgB.gif
    • Save the imported document. In the following image, the imported document is to be saved as importDOC:
ka04W000000OeYWQA0_0EM440000002BgY.gif
    •  
      NOTE:The Imported Document name should not include any spaces.
  • Add the imported document to desired the Service. Edit the Service to be modified via the Service Wizard and access the Message contents section, as shown below:
ka04W000000OeYWQA0_0EM440000002BgH.gif
    • Right-click on the Define Attachments section and select Use Existing, as shown below. Add the document created in step 2 to the service.
ka04W000000OeYWQA0_0EM440000002BgM.gif
    • Once the imported document has been added to the service, the following will be noted in the service:
ka04W000000OeYWQA0_0EM440000002BgC.gif
  • Edit the HTML source code.
    • Once the imported document has been added to the desired service, click on Edit the Message Body (HTML) and when the HTML Document Editor opens, select Source from the View menu, as shown below:
ka04W000000OeYWQA0_0EM440000002BgZ.gif
    • Edit the HTML source code to include the following line for the image(IMG) tag:
      <IMG src="IMAGE_NAME.EXT" />
    • NOTE: IMAGE_NAME.EXT must be replaced with the imported document name and file extension. The SRC attribute is case sensitive. For example, in the sample IMG tag below, the name of the document is importDOC and its original extension is .gif; therefore the IMG tag will be:
       
      <IMG src="importDOC.gif" />
    • NOTE: Even though a correct IMG tag addition has been made to the HTML source code a red letter X will appear in the HTML document editor.
       
ka04W000000OeYWQA0_0EM440000002BgJ.gif
    •  
      This is normal operation when in editing mode. It is the final delivered email will contain the actual image.
       
    • Once the addition has been made, save and close the Document Editor and finish the Service Wizard.
  • When the service is executed, the outcome will be the following:
     
ka04W000000OeYWQA0_0EM440000002BgE.gif

Comment

0 comments

Details

Knowledge Article

Published:

June 8, 2017

Last Updated:

June 8, 2017