Load media
This API call loads the HTML page required to view a media resource from a publication. This media resource could be a simple image such as a JPG or a GIF, or could be an intelligent, hot-spotted graphic such as CGM, or even a 3D graphic. The return of the API call is the appropriate HTML to load the graphic resource.
Example API call
/servlets3/wietmsd?id=1460015059941&book=s1000d_bike_41&collection=default&target=main&action=image&file_name=ICN-S1000DBIKE-AAA-DA00000-0-U8025-00506-A-04-1
Parameters
| Parameter | Description |
|---|---|
target | main |
action | image |
file_name | The file name of the image, without the extension. |
id | A session ID that is valid for this collection and publication combination. |
collection | The name of the collection that the publication is registered in, such as default. |
book | The name of the publication, such as PDMUNITTEST. |
Returns
- On success
-
Dynamically generated HTML page that loads the requested media using the appropriate plugin, ActiveX control, or HTML element.
<HTML><HEAD><TITLE>LiveContent S1000D 4.1 Bicycle IETM</TITLE> <META ID="META_APPNAME" CONTENT="/servlets3/wietmsd"> <META ID="META_ID" CONTENT="1460015059941"> <META ID="META_USER" CONTENT="admin"> <META ID="META_USERGROUP" CONTENT="ADMINISTRATOR"> <META ID="META_COLLECTION" CONTENT="default"> <META ID="META_BOOK" CONTENT="s1000d_bike_41"> <META ID="META_COLALIAS" CONTENT="/IETMBooks3"> <META ID="META_HTTPROOT" CONTENT="/wietmsd3"> <META ID="META_BOOKTYPE" CONTENT="S1000D"> <META ID="META_FILE_NAME" CONTENT="ICN-S1000DBIKE-AAA-DA00000-0-U8025-00506-A-04-1"> <META ID="META_IMAGE_ID" CONTENT="null"> <META ID="META_IMAGE_EID" CONTENT="null"> <META ID="META_MODEL" CONTENT="BIKE_41"> <META ID="META_AUTOFIT" CONTENT="1"> <META ID="META_ISO_VIEW_RELEASE" CONTENT="1"> <META ID="META_CGM_CONTROL" CONTENT="2"> <META ID="META_MEDIA_TYPE" CONTENT=""> <SCRIPT LANGUAGE="JavaScript" SRC="/servlets3/wietmsd?target=resource&action=script&file_name=image.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="/servlets3/wietmsd?target=resource&action=script&file_name=const.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="/servlets3/wietmsd?target=resource&action=script&file_name=redline.js"></SCRIPT> </HEAD> <BODY onload="cgmLoad()" onunload="imageUnload()" onresize="imageResize()"> <DIV ID="MAIN" img_type='cgm'><script language="javascript" for="IsoViewCGM" event="HsHit(nMouseBtn, lRefID, strName, strViewPortName, strViewPortFile)">IsoHsHit(nMouseBtn, lRefID, strName, strViewPortName, strViewPortFile)</script><script language="javascript" for="IsoViewCGM" event="InitFinished()">IsoInitFinished()</script><OBJECT CLASSID="CLSID:865B2280-2B71-11D1-BC01-006097AC382A" ID="IsoViewCGM" WIDTH="100%" HEIGHT="100%"><PARAM NAME="SRC" VALUE="http://localhost:2245/IETMBooks3/s1000d_bike_40/figures_shared/ICN-S1000DBIKE-AAA-DA00000-0-U8025-00506-A-04-1.CGM"><PARAM NAME="TOOLS" VALUE="1"></OBJECT></DIV> </BODY> </HTML> - On failure
-
HTML page reporting that the image can not be found