ePages 6.10 - DE_EPAGES/Core/API/Xhr.pm

Package DE_EPAGES::Core::API::Xhr

This module provides decode and encoding methods to convert a string to a non-null-byte string. This is necessarry because the XMLHTTPRequest (XHR) can not handle such binary files.

Example
my $rContent = GetFileContent($FileName, {binary=>1});
my $EncodedContent = encode($$rContent);
my $DecodedContent = decode($EncodedContent); # same $$rContent
@EXPORT_OK
decode
encode

Functions

encode

encode

Replaces null-bytes with place holder.

Syntax
my $NoNullByteString = encode($NullByteString);
Input
$NullByteString (string)
string
Return
$NoNullByteString (string)
string without null bytes