0

IBM 内容管理器以灰度存储我所有的图像,但是当我检索它并在小程序中显示时,灰度不会转换为二进制或保持原样,但它会变成全黑。

可能是什么问题?

我应该在小程序上呈现灰度图像之前将其转换为二进制吗?

编辑:我从这里使用 TViewerApplet.java http://publib.boulder.ibm.com/infocenter/cmgmt/v8r4m0/index.jsp?topic=%2Fcom.ibm.samples.doc%2Fsamples%2Fjava%2Fviewer%2Freadme .html

并从下面的代码中调用它

<BODY>
<table width="100%" border="1">
<tr>
<td width="100%">
<applet name="viewerApplet" id="TViewerApplet" width="100%" height="500" align="baseline" code="com.bsli.applet.TViewerApplet.class" codebase="./classes" mayscript="mayscript" archive="cmbview81.jar">    
</applet>
</td>
</tr>
</table>

<script type="text/javascript">
    var name = '<%=request.getParameter("name")%>';
    alert('name..' + name);
    var host = '<%=request.getLocalName()%>';
    var port = '<%=request.getLocalPort()%>';
    var contextPath = '<%=request.getContextPath()%>';

    var url = "http://"+host+":"+port+contextPath+"/CMServlet.jsp?pid="+pid;
    alert('url..'+url);
    url = encodeURI(url);   
    window.document.viewerApplet.check_setInfo_openDocument(pid,url,name,'<%=request.getParameter("userid")%>');

</script>
</BODY>
4

0 回答 0