SYNOPSIS

  # See also SYNOPSIS of XML::Compile::XOP
  my $xop       = XML::Compile::XOP->new;
  my $xop_image = $xop->bytes($binary_image);
  my $answer    = $call->(image => $xop_image);

DESCRIPTION

Represents one data-set which will be represented as separate (binary) object during transport. This can only be used on data fields which are base64Binary.

YOU SHOULD NOT instantiate this kind of objects directly, but use XML::Compile::XOP methods file() or bytes() to create them.

The object is overloaded to produce the contained data when a scalar is required, for instance when you call functions like "length". This means that, hopefully, the end-user does not see much of a difference between data which is transported inline or attached separately.