WebService and big data flow

From: Date: Thu, 17 Apr 2003 13:08:42 +0000
Subject: WebService and big data flow
Groups: php.general 
Request: Send a blank email to php-general+get-144280@lists.php.net to get a copy of this message
Hi All, I have web service developed with NuSOAP and it works good. But now (when I try to implement one extra function), I have small problem... My server receive from client one SOAP message who contain sometime about 400-600KB data. (this function make a jpg uploading into server folder). My function is very simple and look like this: function sendFile($DestFName, $EncFileData) { if ($DestFName == ''){ return $Sendfile['SendFileResult'] = 'false';} $Status = ''; $Res = base64_decode($EncFileData); $FP = fopen($DestFName,"w+"); $Status = fwrite($FP,$Res); fclose($FP); if ($Status){
      return $Sendfile['SendFileResult'] = 'true';
} else {
      return $Sendfile['SendFileResult'] = 'false';
} } If file is big than 4-5KB my function doesn't work. I think that the problem is with handling big data stream with variable $Res. My Q is: How is possible to handle big data stream in one variable? Is this possible? My function is called just one time from client side (per session) and I don't have client source code, this mean that I MUST solve this problem from server side, this is extra difficult. And all of the data must be handled from one variable in every session. How I can solve this problem? Anyone with idea? 10x! Hilmi

« previous php.general (#144280) next »