the code works perfectly for smaller files but when it comes to bigger files it seems not to work the last 1000-2000 bytes don't come through... can't find any reason for this but its doing it...