Open Peixer opened 4 years ago
@Avishaidev do you have any idea?
To get base64 from any video file i using File Plugin
Code:
this.file.readAsDataURL('PATH_TO_FILE', 'FILE_NAME').then((base64Response) => { console.log('base64Response: ', base64Response) })
I'm trying to get the base64 from .MOV file but the following method return corrupt base64
- (NSString ) base64StringFromFileAtPath: (NSString) filePath { NSData * dataFromFile = [NSData dataWithContentsOfFile:filePath]; return [dataFromFile base64EncodedStringWithOptions:0]; }
Does anyone know how to get base64 from video file?