I have a rpc call to servlet which streams out a pdf document
the fileservlet.java
when hit on browser http://localhost/fileservlet correctly streams out the file but in smartclient its not streaming, please help
and the fileservlet is registered in web.xml and also checks for mime type, and it works independtly when hit http://localhost/fileservlet
the fileservlet.java
when hit on browser http://localhost/fileservlet correctly streams out the file but in smartclient its not streaming, please help
Code:
isc.RPCManager.sendRequest({ actionURL: "../../fileservlet", showPrompt:false, prompt:"Searching records ..", willHandleError:true, data: { } ,callback: function(rpcResponse, data, rpcRequest){ isc.clearPrompt(); isc.logWarn(".. status="+rpcResponse.status); if(!rpcResponse || rpcResponse.status==-1){ handleGenericError(data,rpcResponse); } else{ _itemList.setData(rpcResponse.data.gridData); } } });
Comment