Pixel Data being received as null when sending to Orthanc

Hello,

I am trying to send a single DICOM slice to an Orthanc server. The slice has rows and colums of 256x256, which totals to 65.536 total points of pixel data. I have an Unsigned Integer Array Buffer which I am passing to my PixelData field before sending off my data to Orthanc. I have attached a screenshot of what the object looks like.

The POST request is successfully sent via a binary-data stream. But when it gets to Orthanc and I check it value, it appears that the Pixel Data is being defined as null. I have attached a screenshot of the results as well.

Does anyone know what I am doing wrong here? Thanks for any help which you can offer!

pixel data object.png

I forgot to attach the results from orthanc, here they are

orthan pixel data null.png

Hi Shane,
The Orthanc returns Null for binary VR types, values that are too long and (I think) where they cannot be serialised into JSON. As a result the PixelData will always show as Null in the Web UI. You can use the API to fetch the value for that tag https://api.orthanc-server.com/#tag/Instances/paths/~1instances~1{id}~1content/get to check the binary response, or you can use the Web UI to show you a preview of that instance by clicking the “Show Preview” button/use the preview api https://api.orthanc-server.com/#tag/Instances/paths/~1instances~1{id}~1preview/get.
Hope that helps.
James