[英]Convert Mp4 Video into a String
Ok, so this is going to be really complicated to make but I'm trying to make a website in PHP, where you can upload a mp4 video, and the website will convert it to a super long string. 好的,这制作起来真的很复杂,但是我试图用PHP创建一个网站,您可以在其中上传mp4视频,该网站会将其转换为超长字符串。
Can I have some help with this? 我可以帮忙吗?
Thanks, ProtectedMethod 谢谢,ProtectedMethod
Use phps file_get_contents() to transfer any content of a file into a string. 使用phps file_get_contents()将文件的任何内容传输到字符串中。
http://www.php.net/manual/en/function.file-get-contents.php http://www.php.net/manual/en/function.file-get-contents.php
However I would not recommend to read a big binary into a string. 但是,我不建议将大二进制文件读取为字符串。 You would probably run out of ram pretty fast.
您可能很快就会用完ram。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.