im using getcontent() method to get document content based on docId.
but unable to download doc format like .docx,.xls,.jpg,png,pdf.
i recieved the content in binary format but cannot able to convert it into there actual format using JAVa apis.
want help for above issue.
unable to download document using JAVA APIs
Moderator: car031
Post
Re: unable to download document using JAVA APIs
Using the method getContent() you will get the digital content (in bytes) of a document.
You should only write the stream on a file.
https://docs.logicaldoc.com/resources/w ... getContent
Of course in order to successfully save the document with the right filename and extension you should first request the system to get the metadata information of the document (file-name). the method to invoke is getDocument()
https://docs.logicaldoc.com/resources/w ... etDocument
Note: you can get code snippets from here: https://wiki.logicaldoc.com/wiki/Bindings_And_Samples
You should only write the stream on a file.
https://docs.logicaldoc.com/resources/w ... getContent
Of course in order to successfully save the document with the right filename and extension you should first request the system to get the metadata information of the document (file-name). the method to invoke is getDocument()
https://docs.logicaldoc.com/resources/w ... etDocument
Note: you can get code snippets from here: https://wiki.logicaldoc.com/wiki/Bindings_And_Samples
Who is online
Users browsing this forum: No registered users and 5 guests