Changeset 3239 for branches/2.0/tools


Ignore:
Timestamp:
Apr 15, 2009, 12:49:04 AM (16 years ago)
Author:
plg
Message:

bug 949 fixed: to avoid memory limit on server side, base64 encode chunks one
by one on client side and base64 decode chunks one by one on server side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/tools/piwigo_remote.pl

    r3192 r3239  
    256256    my %params = @_;
    257257
    258     my $content = encode_base64(read_file($params{filepath}));
     258    my $content = read_file($params{filepath});
    259259    my $content_length = length($content);
    260260    my $nb_chunks = ceil($content_length / $conf{chunk_size});
     
    274274            {
    275275                method => 'pwg.images.addChunk',
    276                 data => $chunk,
     276                data => encode_base64($chunk),
    277277                original_sum => $params{original_sum},
    278278                position => $chunk_id,
Note: See TracChangeset for help on using the changeset viewer.