想读一个90 MB的EPUB文件时内存错误内存、错误、文件、MB

2023-09-13 01:49:27 作者:ㄞ帥氣小正太£

我试图读取使用EPUB库存储在SD卡的epub文件。 该EPUB文件大小为90 MB。当我运行此应用程序它给内存不足的错误。

I was trying to read epub file stored in sdcard using epub library. The epub file size was 90 MB. When I run this application it gives an error "out of memory".

没有任何人有一个想法/建议/解决方案如何解决此问题?

Does anybody have an idea/suggestion/solution how to solve this?

推荐答案

您可能要像7-ZIP的压缩文件管理器打开文件,并看看单个文件的大小。一些电子书阅读器(如索尼的)对在.epub档案中的个人.xhtml文件大小限制 - 我们一直在分裂我们伸到pssed约100KB uncom $ P $每

You might want to open up the file in an archive manager like 7-zip, and take a look at the individual file sizes. Some e-book readers (like Sony's) have size limits on the individual .xhtml files in the .epub archive - we've been splitting ours out into about 100KB uncompressed each.

如果你发现.epub档案里的XHTML文件过大时,可以使用类似的Calibre工具将文件分割成更小的位。

If you do find that the xhtml files inside the .epub archive are too large, you can use a tool like Calibre to split the file into smaller bits.