Changeset 3240 for trunk/tools


Ignore:
Timestamp:
Apr 15, 2009, 12:54:39 AM (15 years ago)
Author:
plg
Message:

merge r3239 from branch 2.0 to trunk

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
  • trunk/tools/piwigo_remote.pl

    r3193 r3240  
    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.