I know this is possible in NetSim. Please refer http://tetcos.com/File_Exchange/ and in that link the file is present in http://tetcos.com/File_Exchange/WSN_File_Transfer_v9.zip
I dont think you can transfer the actual file . However, you may emulate the amount of data over the link if you are up for the performance evaluation.
So far I have experimented with randomly generated strings emulating a file (code attached) and sending a fixed amount of data. If its just data you wish to send, I think data of equivalent size will suffice.
Hope this helps.
Update : Adding the links of manuscripts where I applied this method.