Answer the question
In order to leave comments, you need to log in
How to organize streaming of a large binary file with hosting restrictions?
There is a case. In general, this is how it is: the PHP script returns one large audio file of unknown size (content-length cannot be set) with the header content-type: audio/mpeg. What is the problem: the transfer rests on the hoster's limitation on the size of the file being transferred.
I ask for advice: is it possible, and if so, how to split the stream into parts of a fixed length (it's not really about chunk download). Let's say, for example, that when one part is fully loaded, the download is reset and another part starts loading.
Thank you in advance for your response.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question