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

KB14226: How to display a .JPG or .GIF image as an attribute element in a report in MicroStrategy


Community Admin

• Strategy


The article explains how to display a .JPG or .GIF image as an attribute element in a report in MicroStrategy.

Older versions of Strategy Web do not support blob data type to be an attribute form. However, there is a way to display images as attribute elements in a report in Strategy Web and Library. Refer to the following Strategy Knowledge Base technical note for more information about this limitation:
KB7704 - How to display Oracle database image in MicroStrategy Web 9.x
This article includes more detailed steps to implement the workaround using the following simple example:
 

  • Create a table with a column with the following SQL:
    CREATE TABLE ImageTest (Image VARCHAR2(200))
  • NOTE: Oracle Database syntax is used as an example. Consult the DBA for database specific syntax to create table.
     
  • Populate a column with a value of URL with the following SQL:
    INSERT INTO ImageTest Image VALUES ('https://<webserver_name>:8443/MicroStrategy/images/airport/Paris.jpg');
     
  • Save an image on the Web Server machine. For this example, C:\Program Files (x86)\Common Files\Strategy\Tomcat\apache-tomcat-9.0.83\webapps\Strategy\images\airport\Paris.jpg:
ka0PW00000014ftYAA_0EMPW000004L07c.jpeg
  • Bring the table into the project, as shown below via Warehouse Catalog:
ka0PW00000014ftYAA_0EMPW000004L4az.jpeg
  • Create an attribute with column name 'Image' as an expression and data type 'Picture', as shown below:
ka0PW00000014ftYAA_0EMPW000004L8BZ.jpeg
  • Create a report with this attribute and execute in Strategy Web:
ka0PW00000014ftYAA_0EMPW000004L5C5.jpeg
  • Same works in Strategy Library:
ka0PW00000014ftYAA_0EMPW000004LA3h.jpeg
  • NOTE: The string of the path to the image is shown instead of the image itself when the same report is executed through Strategy Developer, as shown below:
ka0PW00000014ftYAA_0EMPW000004L1Of.jpeg

 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 23, 2017

Last Updated:

March 4, 2024