michalstocki/FlashWavRecorder

Hi, How to put the FWRecorder.getBase64() string convert wav files in php ?

Open

#41 opened on Nov 26, 2014

View on GitHub
 (2 comments) (0 reactions) (0 assignees)ActionScript (241 stars) (106 forks)batch import
help wanted

Description

hi friends, try html form post FWRecorder.getBase64() string

PHP:

  $fileBase64 = str_replace('data:audio/wav;base64,', '',  $_POST['Base64']);
  $decoded = base64_decode($fileBase64 );
  file_put_contents('test.wav', $decoded);

but the test.wav can't play, help ~ thanks very much!

Contributor guide