an fread was set to 1 byte when the data it was reading could me many kb more mega bytes set it to 4MB since it sounds resonable