NAME

Oryx::Value::Binary - Values containing large amounts of binary data

SYNOPSIS

  package CMS::Picture;

  use base qw( Oryx::Class );

  our $schema = {
      attributes => [ {
          name => 'filename',
          type => 'String',
      }, {
          name => 'picture',
          type => 'Binary',
      } ],
  };

  $x = CMS::Picture->create({
      filename => 'filename.jpg',
      picture  => $binary_data,
  });

DESCRIPTION

This is a basic binary field. It should be able to contain a very large amount of binary data. The limit on the amount will be database dependent.

This value type does not perform any work to check, inflate, or deflate the value. The binary data is stored as-is using the "Binary" primitive type.

SEE ALSO

Oryx::Value

AUTHOR

Richard Hundt <richard NO SPAM AT protea-systems.com>

COPYRIGHT AND LICENSE

This library is free software and may be used under the same terms as Perl itself.