c# - VS 2012 - 'System.OutOfMemoryException' was thrown -


i getting error when handling archive files.

system.outofmemoryexception: exception of type 'system.outofmemoryexception' thrown. @ system.io.memorystream.set_capacity(int32 value) @ system.io.memorystream.ensurecapacity(int32 value) @ system.io.memorystream.write(byte[] buffer, int32 offset, int32 count) @ system.io.stream.internalcopyto(stream destination, int32 buffersize) @ system.io.stream.copyto(stream destination) @ system.io.compression.ziparchive.init(stream stream, ziparchivemode mode, boolean leaveopen) @ system.io.compression.ziparchive..ctor(stream stream, ziparchivemode mode, boolean leaveopen, encoding entrynameencoding) 

here code.

ziparchive archive = zipfile.openread(packagefile);  var jbosszip = archive.getentry(jbossfilename); 

please note archive file 170mb in size. know solution issue?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -