Zip file downloading from UCM server to client

matt12

New Member
I have a custom service which accepts the Document name and content ID as a comma separated values and merges the content ID's to form a single PDF document.I'm zipping this PDF document and want to send it across to the ADF application to allow the user to download the document. I'm using the fowwing piece of code to send back the document ,but ADF is only getting the object reference of the file.\[code\]public void transferToClient (File file){DataStreamWrapper dataStreamWrapper = this.createNewDownloadStream();String fileName =file.getName();dataStreamWrapper.m_clientFileName = fileName;//dataStreamWrapper.m_inStreamActive = true;dataStreamWrapper.m_dataType = "application/zip"; try {this.m_httpImplementor.sendStreamResponse(this.m_binder, dataStreamWrapper);} catch (ServiceException e) {e.printStackTrace();}}\[/code\]Can any one shed some light on how to achieve the requirement.
 
Top