binary ( $value )

A shortcut/factory-type method for indicating a DynamoDB binary type. Binary types are like strings but get base64 encoded automatically. The DynamoDB service decodes these values and stores them in the raw format. This allows the transfer of binary data to DynamoDB without the extra storage costs of the base64 encoding inflation.

Access

public

Parameters

Parameter

Type

Required

Description

$value

string

Required

The value to be converted to a binary type

Source

Method defined in services/dynamodb.class.php | Toggle source view (4 lines) | View on GitHub

public function binary($value)
{
    return new DynamoDB_Binary($value);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback