Unexpected value in response to a query

Good morning everyone.
By studying the capabilities of the REST API better, I can now access the reports and individual values of some TAGS.
Now my problem is accessing a set of values for which I am not receiving the value I expect.
If I query the value

http://MyDicomServer:8042/instances/3cde27c3-80a6e278-56eb2fcf-8ead4f4a-86fb648c/content/0022,1008/0/0022,1050/0/0022,1212/0/0022,1019

I would wait to receive the value 26.036540985107422 as reported in line:
0022.1019 (OphthalmicAxialLength): 26.036540985107422
but in the file I find 4 incomprehensible characters corresponding to the HEX sequence d6 4a d0 41.
Can anyone tell me why this happens?
The interested part of the source istance is in this image:

Hi,

As the doc says, the /content route returns the RAW value of a tag (= the raw bytes).

If you want the float value, use the /tags route

Best regards,

Alain.

Thank you Alain
I’ve just tried this way but with no result
If I use the /tags route with no other parameters I get all the tags in instance, if I use the full path to get a single value the result is “404 not found”, I think because this command looks for the tags under the requested position and not for the content of the TAG; if I use the /content switch I get the same result of the first post in topic.
This is the istance full image

and this is the string I use to extract the needed value:

C:\orthanc\__Framework\curl\curl.exe http://MyDicomServer:8042/instances/3cde27c3-80a6e278-56eb2fcf-8ead4f4a-86fb648c/content/0022-1008/0/0022-1050/0/0022-1212/0/0022-1019 (I’ve tried with “,” and “-” as field separator with no differences)
Can you show me where is the error?
Thanks a lot

P.S. I’ve found nothing in the link you posted, what did you want to tell me?

No more ideas? Do you think I must parse all the /tags report to extract the values I need?
Isn’t there an easyer or faster way to reach my goal? Really cannot I get the float value of a single tag?
Isn’t there a way to convert the raw value in its relative float value?

Please help me

Of course. Parsing JSON is a piece of cake for any scripting language.

Really cannot I get the float value of a single tag?

No, you are actually the first one to request such a low level API route. All human readable tags are available in the /tags route. The /content route is only useful for binary tags that can not be represented in a JSON document.

HTH,

Alain.

1 Like

I think that the overhead (TCP/IP , HTTP,…) of a request that would retrieve a single float value makes it quite useless compared to calling /tags and picking the required value.

Plus maybe this would lead some beginners to perform a zillion requests to retrieve many tags, which would be cataclysmic in terms of performance.

Just my $0.02