我发现此代码HttpURLConnection to Send image , audio and video files with parameter may (String or Json String) Android,它可以与视频,图像和音频完美配合。但是,当我送一个大的视频我得到这个错误: Throwing OutOfMemoryError "Failed to allocate a 2
我〜1GB * .tbz的文件。在每个文件里面都有一个〜9GB的文件。我只需要读取这个文件的头部,前1024个字节。 我想,因为我有数百个这样的文件1GB我要处理这个要做到这一点尽可能快。它需要大约1分30秒的时间来提取。 我试着用足额提取: tar = tarfile.open(fn, mode='r|bz2')
for item in tar:
tar.extract(item)