[英]how to read number of record in xlsx file using Apache POI?
I have requirement to read *.xlsx file in java for that i am using Apache POI API.if number of row are less it's work nicely but when number of row are greater then or equals 65536. i got an exception java.lang.OutOfMemoryError: Java heap space
。請幫助我如何解決這個問題。
謝謝sameek
如果您可以將 xslx 文件另存為 xml - 您可以使用 SAX,它非常快並且對行數沒有限制。
POI支持低memory方式以流的方式讀取.xlsx文件。 有關其工作原理以及如何開始的詳細信息,請參閱http://poi.apache.org/spreadsheet/how-to.html#xssf_sax_api 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.