dennysutanto
01/20/2023, 11:18 AM%PDF-1.4
%����
1 0 obj
<<
/Type /Catalog
/Version /1.4
/Pages 2 0 R
/Names 3 0 R
>>
endobj
4 0 obj
<<
/ModDate (D:20230117152407+07'00')
/Creator (JasperReports Library version 6.10.0-dddd38218a3c404d01eecdb9d9a7636fe2d02d7a)
/CreationDate (D:20230117152407+07'00')
/Producer (iText 2.1.7 by 1T3XT)
>>
endobj
2 0 obj
>>
stream
x��Z�s�6~�ؙNg�q�[vߜ��$�#Ng:�>p wC���������
And this is what i have in my map reduce script
let result = https.get({
url: url+'/api/v1/wps/'+row.wp_id+'/log-exports/'+row.pdf_id+'/download',
headers: {
Authorization: 'Bearer '+token_id,
Host: url,
Accept: '*/*',
'Accept-Encoding': 'UTF-8'
}
});
let encodedPdf = encode.convert({
string: result.body,
inputEncoding: encode.Encoding.UTF_8,
outputEncoding: encode.Encoding.BASE_64
});
let filePdf = file.create({
name: logPdf.fileName,
fileType: file.Type.PDF,
contents: encodedPdf,
folder: 4127544
});
Need help
Thanksdennysutanto
01/20/2023, 11:31 AMWatz
01/20/2023, 11:57 AMWatz
01/20/2023, 11:59 AMdennysutanto
01/20/2023, 1:20 PMdennysutanto
01/20/2023, 1:21 PMHave you tried to change the accept-encoding?
how do i change this ? you mean change in NS or in the API ?Watz
01/20/2023, 1:21 PMdennysutanto
01/20/2023, 1:22 PMWatz
01/20/2023, 1:34 PM'Accept-Encoding': 'UTF-8'
dennysutanto
01/20/2023, 1:35 PMWatz
01/20/2023, 1:35 PMdennysutanto
01/20/2023, 1:36 PMdennysutanto
01/20/2023, 1:36 PMdennysutanto
01/20/2023, 1:43 PMJan Petri
01/20/2023, 3:56 PMAccept:
header where you indicate which format you can consume. You could try "text/plain"
or "text/html".
jen
01/20/2023, 4:49 PMjen
01/20/2023, 4:50 PMbattk
01/20/2023, 6:25 PMbattk
01/20/2023, 6:25 PMbattk
01/20/2023, 6:26 PMbattk
01/20/2023, 6:27 PMbattk
01/20/2023, 6:27 PMbattk
01/20/2023, 6:30 PMbattk
01/20/2023, 6:31 PMapplication/pdf
but honestly any of the file types that are binary also workJan Petri
01/20/2023, 7:55 PMdennysutanto
01/21/2023, 4:30 AMdennysutanto
01/21/2023, 4:30 AM