Page 1 of 1

Unable get proper document content in specific format

Posted: Wed Jul 03, 2019 4:28 pm
by ajutate
I'm using getcontent REST call to Fetch document to thr original type but when Im trying to download PDF or any other format file except "txt" It gives me wrong format data which does not suit to that particular extra format.
I'm using peace of Java servlet code to download file using docid .
I'm using find() Method to get docid and doc name with extn.
But other than text format Other Format files Does not download properly

Re: Unable get proper document content in specific format

Posted: Mon Jul 22, 2019 9:54 am
by agaspa
Hi @ajutate,
I think there is already an answer to a similar request viewtopic.php?f=10&t=10579#p16409

You can get some working examples for many different programming languages in the wiki of LD
https://wiki.logicaldoc.com/wiki/Bindings_And_Samples

Re: Unable get proper document content in specific format

Posted: Mon Jul 22, 2019 10:44 am
by agaspa
Here is an example using HttClient to find and download the results to file
Look at the methods findAndDownload and downloadDocument