duanaozhong0696 2010-12-14 09:52
浏览 1011
已采纳

读取二进制数据并将其转换为.wav或mp3音频文件

i am developing an web application in which i have to read binary from database base actually this is audio which is saved in the form or binary. how to convert this binary into wav or mp3 file

  • 写回答

2条回答 默认 最新

  • doubeng9567 2010-12-14 09:56
    关注

    If you didn't touch the binary data and it's still in its original binary wav/mp3 form, you have the audio file. Just write it to a file to make it an actual file:

    file_put_contents('sound.wav', $binaryData);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器