PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → erreur application/octet-stream' not supported
erreur application/octet-stream' not supported
Iniciado por marwane.zekri, 31,ago. 2020 16:23 - No hay respuesta
Publicado el 31,agosto 2020 - 16:23
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