NSData * imageData = UIImageJPEGRepresentation(image,1);length = [imageData length]/1000;
或者是1024,不过1000稍微精准