large file--> large string --> out of memory exception
807580Apr 5 2009 — edited Oct 29 2009Hi all,
i'm reading an extremely large file using a byte[] of size around 1000000bytes, whenever i read a chunk from this file, i have to extract some information for indexing this file.
when i try to convert this byte[] to a string to search for the info i need, i get out of memory exception, any idea how can i handle this large byte[].
i tried using bytebuffer and charbuffer classes, but they seem to take too much time and reduce performance.
any ideas??