Nicola
08/05/2024, 10:10 AMFileInputStream(File("$fullOutputPath/$fileName")).use { fis ->
return Response(Status.OK).with(Body.binary(ContentType.APPLICATION_PDF).toLens() of fis)
}
I just want to serve a PDF file ... I've tried to add fis.readAllBytes() but binary signature wants an inputstream, it seems ..
What am I doing wrong?
Thanks in advancedave
08/05/2024, 10:20 AMdave
08/05/2024, 10:21 AMNicola
08/05/2024, 10:21 AMAndrew O'Hara
08/05/2024, 1:21 PMNicola
08/05/2024, 1:22 PMJames Richardson
08/06/2024, 5:56 AMdave
08/06/2024, 6:06 AMJames Richardson
08/06/2024, 6:21 AM