hello,
i am using orthanc server on Windows, version 1.3.2
when I try to collect rows and columns sizes through:
curl http://localhost:8042/instances//content/0028-0010
I get an empty string of 2 chars
while it is correct by viewing it in web page:512
http://localhost:8042/app/explorer.htm
What is the correct syntax?
regards
Sylvain
Hello,
The “/instances//content/0028-0010” URI provides access to the raw binary tag contained in the DICOM file. Under Linux, this can be seen by piping the result of curl to hexdump:
$ curl -s http://demo.orthanc-server.com/instances/a094cc62-748d3fd9-510030f3-ba59a8b1-25bd64ee/content/0028-0010 | hexdump -C
00000000 00 02 |…|
As can be seen, the value is “0x00 0x02”, which accounts for 512 pixels in this file.
To access a parsed value, use the “/instances//tags” URI instead. For instance:
$ curl -s http://demo.orthanc-server.com/instances/a094cc62-748d3fd9-510030f3-ba59a8b1-25bd64ee/tags?simplify | grep -E ‘Rows|Columns’
“Columns” : “512”,
“Rows” : “512”,
HTH,
Sébastien-