Hello Luc
Thank you for trying out the ruby-dicom library!
DICOM tags of type OB and OW are somewhat special, since they are byte strings (binary strings). Because of that, they are not interpreted by ruby-dicom and converted to a "value" (e.g. string or integer).
However, you can still access the binary string and process it yourself.
What you are looking for in this case is to extract it like this:
str = dcm["0009,0017"].bin
length = dcm["0009,0017"].length
Hope that helps!
Best regards,
Christoffer