ven. 28 novembre 2025, 07h48
shjl
France
atoutfox.public.association
Re: API envoi de PDF MSXML2.ServerXMLHTTP
Bonjour, merci beaucoup pour votre aide. . J'ai fait STRCONV( filetostr("d:\hes\hes\journee_i.pdf") , 13), mais le problème c'est que ma variable est trop longue et quand je fais mon send, j'ai un message line is too long
lcfile = STRCONV( filetostr("f:\test\compta.pdf") , 13)
lcmessage = '{ ' + CHR(13) + CHR(10) + ;
'"title":"Test",' + CHR(13) + CHR(10) + ;
'"file":"'+ &lcfile +'", ' + CHR(13) + CHR(10) + ;
'"elementType":"intervention", ' + CHR(13) + CHR(10) + ;
'"elementReference":"730042", ' + CHR(13) + CHR(10) + ;
'"grant_type":"client_credentials", ' + CHR(13) + CHR(10) + ;
'}'
Cordialement,
sandra
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000020320