I am trying to convert video blob url into base64 using php.
My blob url like this
blob:https:
this I need to convet base64 like
data:video/webm;codecs=vp8;base64,.........
.
This blob url I have converted into base64 by using
javascript but I have to do in
PHP only
Here is my javascript code what ever I have done
var reader = new FileReader();
reader.readAsDataURL(recorder.getBlob());
reader.onloadend = function() {
var base64data = reader.result;
console.log(base64data);
In console I got base64 url perfect ,but I have to do in
PHP only.
This blob url in php I stored in variable called $blob
$blob =blob:https:
Can any one help me in this one .
Thanks
What I have tried:
var reader = new FileReader();
reader.readAsDataURL(recorder.getBlob());
reader.onloadend = function() {
var base64data = reader.result;
console.log(base64data);