fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16986] soap client braarkiv: get files by chunks


From: sigurdne
Subject: [Fmsystem-commits] [16986] soap client braarkiv: get files by chunks
Date: Thu, 17 Aug 2017 08:34:02 -0400 (EDT)

Revision: 16986
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16986
Author:   sigurdne
Date:     2017-08-17 08:34:01 -0400 (Thu, 17 Aug 2017)
Log Message:
-----------
soap client braarkiv: get files by chunks

Modified Paths:
--------------
    trunk/property/inc/soap_client/bra5/soap.php

Modified: trunk/property/inc/soap_client/bra5/soap.php
===================================================================
--- trunk/property/inc/soap_client/bra5/soap.php        2017-08-17 12:08:49 UTC 
(rev 16985)
+++ trunk/property/inc/soap_client/bra5/soap.php        2017-08-17 12:34:01 UTC 
(rev 16986)
@@ -186,9 +186,10 @@
                        // kjører løkke til tekstverdien vi får i retur er null
                        while (($base64string = 
$Bra5ServiceFile->fileTransferRequestChunk(new 
Bra5StructFileTransferRequestChunk($secKey, $_fileid, 
$offset))->fileTransferRequestChunkResult->fileTransferRequestChunkResult) != 
null)
                        {
-                               fputs($fp, base64_decode($base64string));
+                               $decoded_string =  base64_decode($base64string);
+                               fputs($fp, $decoded_string);
                                // Oppdaterer offset til filens foreløpige 
lengde
-                               $offset += strlen($base64string);
+                               $offset += strlen($decoded_string);
                        }
                        // Avslutter nedlasting
                        $Bra5ServiceFile->fileTransferRequestChunkedEnd(new 
Bra5StructFileTransferRequestChunkedEnd($secKey, $_fileid));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]