title: Replace sequence of bytes in binary file
body: <p>What is the best method to replace sequence of bytes in binary file to the same length of other bytes? The binary files will be pretty large, about 50 mb and should not be loaded at once in memory. </p>
  
  <p>Update: I do not know location of bytes which needs to be replaced, I need to find them first.</p>