简体   繁体   English

PHP中音频文件上的base64_decode

[英]base64_decode on audio file in PHP

When trying to get base64 encoded data from IOS through API and decoding it in server giving empty response for large files. 尝试通过API从IOS获取base64编码的数据并在服务器中对其进行解码时,对大文件将给出空响应。 Means its working fine for audio files less than 5MB only. 表示仅适用于小于5MB的音频文件。 I can't even identify this problem is happening while encoding in app side or while decoding in server side. 我什至无法确定在应用程序端进行编码或在服务器端进行解码时是否正在发生此问题。

So how can I fix this problem? 那我该如何解决这个问题呢?

Please help me to solve this. 请帮我解决这个问题。 All your answers will be appreciated. 您所有的答案将不胜感激。 Thank you. 谢谢。

file_put_contents('audio.mp3', base64_decode($data));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM