Your comment about TIFF inspired me to google that format. I found a warning that software to decode this format may require a license.
Did you check out the built-in function 'vec'? The bits in your string are probably not in the order that you expect. You should be able to fix this with unpack. (pack/unpack are confusing, and working code probably cannot be ported to other systems).