Hi I have an outputstream that is returned from a method. I need to write it to a file.
public OutputStream getPDF()
public static void main()
File pdf = new File("c:\\my.pdf")
what do i do here so that i can write it to a file from getPDF method