Added method to read file and added code on server side to send file.