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 06:08 AM
And what type of file is this ? Is it .txt or something else ? What type of file are you reading ? What’s the content-type
in the sftp server ?
11-17-2021 07:02 AM
There is no extension for the file in the source system(reading file from source using file reader through sftp ). it is not txt file,but we can open with notepad or textpad
sample file name is : xyzdata
11-17-2021 07:20 AM
I’m not really sure why it adds the …bin after the filename. Can you check the output after the Mapper and see if some extension is added unintentionally ?
11-17-2021 07:41 AM
11-17-2021 07:42 AM
I think the problem is that the ZipFile Writer , automatically detects that the incoming file has a binary structure, and adds .bin at the end. You can try and add a custom content-type header in the mapper, along with the content-location: