如何将MP3文件转换为Base64编码的字符串? [英] How can I convert MP3 file to a Base64 encoded string?

查看:2141
本文介绍了如何将MP3文件转换为Base64编码的字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将小于10 MB的MP3文件转换为Base64编码的字符串.我只能找到图像转换器.

I want to convert MP3 file which is less than 10 MB to a Base64 encoded string. I can only find image converters.

有人可以建议我做一个在线工具吗?

Can anybody suggest me an online tool which will do this?

推荐答案

查找二进制到base64"或文件到base64".例如,此工具.

Look for "binary to base64" or "file to base64". For example, this tool.

然后在原始base64结果之前添加data:audio/mpeg;base64,

Then precede raw base64 result with data:audio/mpeg;base64,

这篇关于如何将MP3文件转换为Base64编码的字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆