Lotus Script NotesHTTPRequest and send file format form-data

I have a file in the local directory called unnamed.jpg
I set up this script to test and send this file via api

I need to send this file via api rest in form-data format
How do I convert this file "c: \ temp \ unnamed.jpg"
to the form-data format to pass the file by parameter via NotesHTTPRequest ?

I can't send the file. How should I convert it to the correct format and how do
I pass the file parameter in the body?

Dim session As New notessession
Dim teamsURL As String,Body As String,Message as string
message="c:\temp\unnamed.jpg"
teamsURL="https://demo.d4sign.com.br/api/v1/documents/{UUID-DOC-PRINCIPAL}/uploadslave"
Dim http As NotesHTTPRequest
Set http=session.CreateHTTPRequest()
Body=|{"file":"|+Message+|"}|
Call http.SetHeaderField("ContentType","multipart/form-data;")
Call http.SetHeaderField("tokenAPI","xxxxxx")
Call http.SetHeaderField("cryptKey","yyyy")
Call http.Post(teamsURL,Body)

Very tiny little thing that might help here: Whenever I've used or seen "Content-Type" as the field name for the HTTP header, it's usually hyphenated.

I cannot say this will work for you or not; I have not tried this myself. Good Luck, mdv.

the solution I applied was to create an external script with RestSharp via C # and call the executable via the hcl agent the shell, however the functional site and via the server did not create the file.
this api in C # takes the url of the file downloads it and sends the file to the server
I looked for a solution in java that does the same as this RestSharp..but I couldn't find another solution without an intermediary via Domino