I am trying to generate a pdf in my application.
I have used the following in a previous project to copy the byte array to the outputstream.
FileCopyUtils.copy(fileContent, response.getOutputStream());
In my current project we are not using spring framework. So I cannot use FileCopyUtils
here. Is there any other way to do the similar thing in simple basic java.