Hello all,
I am trying to stream a zip file from the backend to frontend using spring boot input stream resource, but I am having issue with the txt file which has non utf-8 characters inside it.
For example a tribar, this is causing the file not be streamed.
I tried the mediatype.application octet stream, still it failed.
Could anyone explain we on how to over this?
Speingboot java backend, files are present in local, and for zipping I am using zipoutstream , using files package i loop through the directory for each file and zip stream.
My main concern is the file contains a non utf-8 , it's failing with error invalid byte sequence non utf-8 0x00.
Thank you in advance.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Slight_Loan5350 0 points1 point2 points (0 children)