Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
PHP ZipArchive, play FLAC audio file which is inside a zip archive without extraction

It is about the following:

I like to play an audio file which is inside a zip archive without extraction.

This is my current approach:

<?
$z = new ZipArchive();
if ($z->open(dirname(__FILE__) . '/archiv.zip')) {
    $string = $z->getFromName("Part.flac");
}

?>

<audio src="?????" controls></audio>

The reading part works, but getFromName returns a string, the question is now how to convert the string back to it's 'binary flac format', so that the audio element can play it.

Any other better approach?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!