If you cooperate with someone, you are helping him with something he does (e.g. a project for his company). The project usually belongs to the other person. You just contribute your knowledge to it's success.
While collaborating with someone, you are more like an equal partner. Two or more persons are working towards a common end.