michalstocki/FlashWavRecorder

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

Open

#41 创建于 2014年11月26日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)ActionScript (241 star) (106 fork)batch import
help wanted

描述

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!

贡献者指南

Hi, How to put the FWRecorder.getBase64() string convert wav files in php ? · michalstocki/FlashWavRecorder#41 | Good First Issue