Hello All,
I have create Rest Service and I am trying to Generate Zip file. This Zip file created from muliple PDF files which are downloaded using method
InputStream inpuStream = new URL(url).openStream(). I am able to Generate Zip file Which included PDF files but PDF files are broken.
Even If i try to Generate it from
String its coming as broken PDF and i am getting Error message "Not a supported File Type or file is broken or damaged"
I have given my code below for your reference. Could you please Guide me where I am making the mistake. Do I need to return ResponsEntity or void controller is fine.
Rest controller:
2)Service method: