Bonjour,

J'ai un programme qui permet d'écrire un fichier sur l'IFS en récupérant les données encodé en base 64 via un webservice (voir requête SQL ci-jointe).

Mon problème c'est que le fichier PDF créé sur l'IFS à une taille maxi de 768 ko, et que acrobat reader génére une erreur.
Si je récupére le résultat du webservice via postman et que je le décode sur internet, obtiens un fichier de 880ko qui est ouvrable avec acrobat reader.


Pouvez-vous me dire à quel niveau j'ai un blocage ?
Et si c'est une limitation du système, comment je peux la coutourner ?

Par avance merci.

Cordialement


Requête SQL

call ifs_write_binary(
Path_name => trim('/home/mondossier/monfichier'),
line => (

SELECT
qsys2.base64_decode(wdoc)

FROM XMLTABLE(
XMLNAMESPACES( 'http://www.monsite.fr/namespace/default' as "ns1"),
'$result/*:Envelope/*:Body/*:WS_lodaweb_documentResponse'
PASSING XMLPARSE(
DOCUMENT
SYSTOOLS.HTTPPOSTCLOB(
'http://lodarama.l-d.fr:8080/4DSOAP/',

'<httpHeader>
<header name="Content-Type" value="text/xml;charset=utf-8"/>
<header name="SOAPAction" value="WS_document"/>
<header name="Authorization"
value="Basic cHllCnJllmNvc4RhbnpPojJLOFUzOA=="/>
</httpHeader>',

'<soapenv:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:def="http://www.monsite.fr/namespace/default">
<soapenv:Header/>
<soapenv:Body>
<def:WS_document soapenv:encodingStyle=
"http://schemas.xmlsoap.org/soap/encoding/">
<id_document xsi:type="xsd:int">676799</id_document>
</def:WS_document>
</soapenv:Body>
</soapenv:Envelope>'


)

) as "result"
COLUMNS
wdoc clob PATH 'document' default ''
) AS TABLEXML
),
overwrite => 'REPLACE',
End_of_line => 'NONE' );