Post an Image in Gatling

Hi guys

I am trying to convert this call for use in Gatling, open to any suggustions

curl -X POST
-H ‘authorization: Bearer 86a9402e-baa2-4d8c-89f1-eca757d927bc’
-H ‘cache-control: no-cache’
-H ‘content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW’
-H ‘postman-token: 7b667e3e-3950-8ff1-b14d-90804511f812’
-H ‘x-api: API’
-F file=@/Users/Temp/Images_Upload/MediumSamplePicture.jpg

into the fallowing call in Gatling

  .header("Authorization", "bearer ${bearerToken}")
  .header("x-api", "API")
  1. I am not I am building the body properly,

  2. Also I was curious where I should store the images, I tried putting them into the fallowing location
    “/Users/dmaloney/performance-testing/performance-testing/src/test/resources/data” location so I could use a relative references like I do when I use feeder files, but it seems to get lost and I am not sure why…

Currently I am getting this in the output
Failed to build request: File is not a normal file /Users/dmaloney/performance-testing/performance-testing/target/test-classes