PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → Attachement MIME
Attachement MIME
Iniciado por robertdion, 08,ago. 2019 20:05 - 1 respuesta
Publicado el 08,agosto 2019 - 20:05
J'ai un webservice a utiliser pour envoyer un pdf.

J'essais par tout les moyens de le faire fonctionner mais cela ne marche pas

Voici la doc du webservice

MIME Second Body Part (Binary Attachment)
Field Notes
--boundary_separator Required.
Content-Type: application/octet-stream application/octet-stream is the only value acceptable for the Content-Type
header of this bodypart.
Content-Transfer-Encoding: binary binary is the only value acceptable for the Content-Transfer-Encoding header of
this bodypart.
Content-
ID: <image_attachment_identifier>
The Content-ID value must cross-reference with an <xop:include> href
attribute's URL of the first bodypart XML content.
Note: do not include the cid URL prefix here.
Required line break.
binary_data The binary data must be transmitted as is with no encoding, line breaks nor
escape sequences.
Line break Required line break to signify the end of the body part.



j'ai de la misère avec cette portion
binary_data The binary data must be transmitted as is with no encoding, line breaks nor
escape sequences.

comment je fais pour le charger comme il faut

merci
Publicado el 09,agosto 2019 - 09:07
Bonjour,

Le mime est le standard utilisé pour les fichiers joints dans les emails.
Tu pourrais essayer de mettre ton fichier pdf dans une structure email, puis récupérer le contenu avec email.source, et ne prendre que le fichier joint pour utiliser ton webservice. (ça permet d'être certain d'utiliser le standard)
Ce n'est qu'une idée, si ça peut aider...