Hi, with a prior version you can use doDataRequest() method and load the file in a BYTE. I should be something like following :
MAIN
DEFINE req com.HTTPRequest
DEFINE resp com.HTTPResponse
DEFINE out,in BYTE
LOCATE out IN MEMORY
LOCATE in IN MEMORY
CALL out.readFile("myfile.jpg")
LET req = com.HTTPRequest.Create("
http://your/url")
CALL req.setMethod("POST")
CALL req.doDataRequest(out)
LET resp = req.getResponse()
IF resp.getStatusCode()==200 THEN
CALL resp.readDataResponse(in)
CALL in.writeFile("myresponse.jpb")
ELSE
DISPLAY "ERROR :",resp.getStatusDescription()
END IF
END MAIN
Regards,
Frank