send POST request to my orthanc server containing an array buffer

Hello,

I am using dcmjs to generate a DICOM file in memory. Once it is in memory and I have the array buffer, I’d like to upload that to my orthanc server.

I see the way to upload to an orthanc server via cURL would be:

curl -X POST https://some-orthanc-server/orthanc/instances --data-binary @test.dcm

But how could I send an array buffer instead of a .dcm file? Thanks for any info.

If you have a DICOM file in memory, you probably don’t want to use the curl command line to post it to Orthanc.

This question is not related to orthanc but to the http client of the language/framework you are using.