• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stream response output?

#1
Hi,

is there any possibility to stream response output?

I would like to stream a video to the browser. But because the video's size is to large I cannot do something like

PHP Code:
$response->setBody($video); 
Currently I am using the following construct that I would like to replace:

PHP Code:
while (...)
{
 
 $data fread($handle,$bytesToRead);
  echo 
$data;
  
flush();
  
$bytesToRead = ...;

Reply


Messages In This Thread
How to stream response output? - by HardyW - 02-23-2019, 02:17 PM
RE: How to stream response output? - by InsiteFX - 02-24-2019, 09:33 AM
RE: How to stream response output? - by HardyW - 02-24-2019, 03:08 PM
RE: How to stream response output? - by InsiteFX - 02-25-2019, 04:27 AM
RE: How to stream response output? - by HardyW - 02-25-2019, 01:42 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.