I now created a debug message that display's the length property for the packet. When I send the file, it says 17. But when I try to download the same file, reader.ReadInt32() gives me 29.
I also noticed that that number is always 29, even when I change the contents of the text file.