Heap space problem

Discussion in 'Apache' started by Abhinav Hegde, Jan 29, 2014.

  1. #1
    Hi,
    Currently, I am using Apache commons 7 zip jar to compress and decompress the files.
    If the file size is too high, the heap space it asks is too huge as the code takes entire file size to create byte array (new byte[entry.size()]). How can heap space required be reduced?
     
    Abhinav Hegde, Jan 29, 2014 IP