IBM内容管理器以灰度级存储我的所有图像,但是当我检索它并在applet中显示时,灰度不会以二进制形式转换或保持不变,但它会全部变黑。
可能是什么问题?
我应该在applet上呈现灰度图像之前将其转换为二进制吗?
编辑: 我在这里使用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>