cocoa - Trying to get bytes and append using NSMutableData for a video through Asset Library gives memory full error -
I am trying to upload a video of 100 MB size through Asset Library. But when I try to use I tried it like this: This really works! - (NSUInteger) getBytes: (uint8_t *) Offset from buffer: (long) Offset length: (NSUntiger) Length error: (NSEROM **) Error
I get memory full error of ALSite repatriation
I have put data in buffer on NSData How do I get it?
byte * buffer = (Byte *) Molec (asset.defaultRepresentation.size); NSUInteger k = [asset.defaultRepresentation getBytes: offset by buffer: 0.0 length: asset.defaultRepresentation.size error: zero]; NSData * adata = NSData * adata = [NSData dataWithBytesNoCopy: buffer length: JF free when don: yes];
Comments
Post a Comment