def bin=(new_bin)
      raise ArgumentError, "Invalid parameter type. String was expected, got #{new_bin.class}." unless new_bin.is_a?(String)
      # Add an empty byte at the end if the length of the binary is odd:
      if new_bin.length.odd?
        @bin = new_bin + "\x00"
      else
        @bin = new_bin
      end
      @value = nil
      @length = @bin.length
    end
def bin=(new_bin)
      raise ArgumentError, "Invalid parameter type. String was expected, got #{new_bin.class}." unless new_bin.is_a?(String)
      # Add an empty byte at the end if the length of the binary is odd:
      if new_bin.length.odd?
        @bin = new_bin + "\x00"
      else
        @bin = new_bin
      end
      @value = nil
      @length = @bin.length
    end
Sets the binary string that the Item will contain.

 @param [String] new_bin a binary string of encoded data
 @example Insert a custom jpeg in the (encapsulated) pixel data element (in it's first pixel data item)
   dcm['7FE0,0010'][1].children.first.bin = jpeg_binary_string