This is such a vague question. You want to transfer data between two systems, okay that's fairly simple to do. However, there are questions you have to think about.
- Does the system you are transferring the data to have the ability to read the data?
- Do you need to establish trust between these systems (are there firewalls in the way, do you need to open ports, etc)?
- What format does the system receiving the data need it in?
- Do you have all the data that the receiver expects?
- Is there mandatory information that needs to be in the data that you don't have?
- Do you need to have a constant connection to stream the data or do you have to establish a connection, transmit the data, and then close it again?
- How are you going to handle cases where you can't establish the connection?
- What policies do you need to consider if you open a connection and then it's force terminated before you finish sending the data?
The question you asked sounds like homework. If it's not homework, then the points I have just listed should be at least part of the conversation you need to have to define your requirements.