PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → erreur application/octet-stream' not supported
erreur application/octet-stream' not supported
Iniciado por Marwane, ago., 31 2020 4:23 PM - Sem resposta
Publicado em agosto, 31 2020 - 4:23 PM
Hi, Can someone pls help me
the web service need 2 files the first facture.pdf the other analyze.json (key words used to analyse facture and extrat information), the execution return the error :application/octet-stream' not supported
here is my code can you plz help me locate the issue :

QUAND EXCEPTION DANS
lIdForm est une chaîne="W"
HTTPCreateForm(lIdForm)
HTTPAddFile(lIdForm, "file", "C:\facture.pdf")
HTTPAddFile(lIdForm, "analyze", "C:\analyze.json")
RESP_HTTP is httpResponse
///*httpRequête
Mareq est une httpRequête
Mareq..URL="***"
Mareq..ContentType="multipart/form-data"
// Mareq..Contenu=""
Mareq..Méthode=httpPost
Mareq..Utilisateur="***"
Mareq..MotDePasse="***"

RESP_HTTP=HTTPSendForm(lIdForm,Mareq)
sResCode=RESP_HTTP.Contenu

FAIRE
RENVOYER Null
FIN