iphone - Convert .mov to base64 encoded string IOS -
i trying convert media files in ios app base 64 encoded strings. when convert image, see encoded string on console.
nsdata *videodata = [nsdata datawithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"photo" oftype:@"jpg"]]; nsstring *base64encoded = [videodata base64encodedstringwithoptions:0]; nslog(@"%@", base64encoded);
but when try give .mov file, not print anything.
nsdata *videodata = [nsdata datawithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"movie" oftype:@"mov"]];
can please tell me doing wrong? or how can convert .mov file base64 encoded string?
thanks
check below link , able find solution.
Comments
Post a Comment