COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS 8 Administration => Topic started by: cognosun on 01 Jul 2010 10:44:06 AM

Title: Issue with Dispatcher URI
Post by: cognosun on 01 Jul 2010 10:44:06 AM
We use 8.4.

We don't have gateway for our installation. We access the environment through Dispatcher URI.

In case of Gateway URI , while accessing images in the Report Studio reports, generally users give path in the URL bar as ../samples/image file.

Where .. represents Webcontent directory.

But as we are using Dispatcher URI, images are working if ever we give full path in the URL bar ( like servername/samples/image file).

Images are not rendering properly if we give the gateway style path.

Can anyone tell how to access the images by not using the server name in the URL path ?
Title: Re: Issue with Dispatcher URI
Post by: tupac_rd on 01 Jul 2010 11:40:52 AM
relative path works fine as long as you have the images copied to the folder ..\c8\webapps\p2pd\samples\images. you might have to create folder \samples\images and then save the images there or if you save images to a different folder, you might have to update report image path accordingly.

HTH
2pac
Title: Re: Issue with Dispatcher URI
Post by: cognosun on 02 Jul 2010 12:08:24 AM
We already have that setup in place...but it's working if ever we give this path : http://ServerName/samples/images/imagefilename

But we want the relative path to work, with dots (..) i.e ../samples/images/imagefilename.



Title: Re: Issue with Dispatcher URI
Post by: tupac_rd on 02 Jul 2010 09:43:35 AM
It is working without any issues for us, not sure why its not working for you.

so, lets say you give relative path, and run the reports, so do you atleast get an image on the output with a red x mark etc., instead of the actual image. If you right click on the image, What path do you see under properties.

Is it http://servername:9300/p2pd/images?
Title: Re: Issue with Dispatcher URI
Post by: cognosun on 02 Jul 2010 09:56:30 AM
You were correct in the first reply  :)

For dispatcher URI, the path which we need to copy images is : /webapps/p2pd/servlet/samples/images/

And after this we can use relative path in report.

Thanks for the answer.