Quantcast
Channel: SCN : All Content - SAP Enterprise Portal
Viewing all articles
Browse latest Browse all 3876

Loading SVG from Portal Application EAR?

$
0
0

Hello there,

 

we are trying to use SVG images in a portal application.

Unfortunately, I can't get any browser to render them.

 

I've build a small HTML file, which includes an SVG and a PNG images as well, for comparison.

If I upload these files to a normal web server, like apache, the SVG image gets properly rendered, whereas if loaded from Enterprise Portal, the SVG image is not rendered.

 

If I compare the requests to the SVG image, the main difference I notice, is the missing response header

Enterprise Portal:

Content-Type: content/unknown

Apache:

Content-Type: image/svg+xml

 

Can someone help me to get SVG images properly loaded by the browser?

(I am using Enterprise Portal 7.31)

 

UPDATE:

I was able to get the issue more precise:

If retrieved from KM, the SVG image loads correctly, since I added the mime type in Portal's System Administration -> Knowledge Management -> Utilities -> Mime Types.

 

But if loaded directly from my Portal Application, mime type is not set and rendering fails.

Is there a way to specify mime types for resources contained in an EAR?

 

Thanks in advance,

Sascha.


Viewing all articles
Browse latest Browse all 3876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>