11-17-2021 03:29 AM
Hi Team,
I am just reading the file from source location and writing the zip file in sldb, but it is creating the zip file with source structure when i unzip.
source file path is : /home/data/interface/inbound/filename.txt
when I unzip it, it has folder structure. here expectation is the zip file should have only file not file location structure
Solved! Go to Solution.
11-17-2021 08:54 AM
11-17-2021 07:58 AM
You can try changing the content-type
header as Bojan suggested, but what I found is if I change the content-type
header to application/octet-stream
just like in your case, it automatically adds the ..bin
extension to the file, so what I did is change the header to binary/octet-stream
and this removed the extension.
11-17-2021 08:54 AM
@j.angelevski ,@bojanvelevski,
Thank you , it is working…great