How to read Byte Stream

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

 



Hi

I am Software Engineer in hyderabad . if possible i
need some help in PHP.
 
we are developing one applet that will upload the
files/folders upto 2gb . the applet will send the file
in bytes stream via http . At server side the PHP has
to receive the file bytes stream and as to write the
file in server system . with the file path preserve .
 
 
i tried this code to get some idea
  
    $request  =  new
Java("javax.ServletRequest",$req);
    $request -> getInputStream();
  
  $in =  $new
Java("javax.servlet.ServletInputStream",$in);
    $byte[] =  new Java("java.lang.byte",$line);
    
    $bytes = 0;
   
    new Java("java.io.FileOutputStream", $fileOutS)
   
    $fileOutS = new Java(
FileOutputStream($dir$file));
     while(0 <($bytes = in ->read($line))){
    
     $fileOutS->write($line,0, $bytes);
     }    
its not working . and the requirment is also not to
use java extension . i have to develop it with out
java extension .
your Help is appreciated Greatly
 
Thanking you
With Regards
Praveen

 




	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux