I have developed a component to read an rpt (ReportSmith) file, and change the hard-coded paths within it so that my report points to the correct set of data.
It works perfectly, but I am reading it in as a File of Byte and writing it back to a new file, and all this takes a long time if it is a big file, especially if there are graphics within the Report.
I have discovered that I don't have to go through the whole file - just the first bit of it which has the embedded paths.
My question is - how can I stop reading in byte by byte when I have done the changes and just append the rest of the original file from that point. (OR if I were to block read the first part into memory, how would I read it and manipulate it in memory and then write it back).