AnsweredAssumed Answered

Trouble in showing images with PHP CWP

Question asked by ebisu on Dec 11, 2014
Latest reply on Dec 13, 2014 by ebisu

I'm coming across a touble in PHP web publishing with FMS13.

I'd like to share videos and images in the browser, but only video field works and image cannot be shown.

Both video and image fields are in external storages, and the connection is SSL except video.


Here are the codes:

<video src="<?php echo $record->getField('video');echo $fm->getContainerDataURL($video);?>" controls></video>

<img src="<?php echo $record->getField('image');echo $fm->getContainerDataURL($image);?>">


Although I've never determined varible $video, the video can be played. Strange, but anyway, it's works.

But the image don't. I checked the source codes in browser. It shows:

<img src="/fmi/xml/cnt/2014-12-03.jpg?-db=NDocWeb&amp;-lay=Program_web&amp;-recid=6&amp;-field=image(1)">

Above, "2014-12-03.jpg" is the original image name.

It I open the image in a new browser, it shows:

This XML file does not appear to have any style information associated with it. The document tree is shown below.



I appreciate anybody can help me.