Check out the life cycle of fish tapeworms @ the CDC.
Adult fish tapeworms may infect humans. Immature eggs are passed in feces of the mammal host (the definitive host, where the worms reproduce). After ingestion by a suitable freshwater crustacean such as a copepod (the first intermediate host), the coracidia develop into procercoid larvae. Following ingestion of the copepod by a suitable second intermediate host, typically a minnow or other small freshwater fish, the procercoid larvae are released from the crustacean and migrate into the fish's flesh where they develop into a plerocercoid larvae (sparganum). The plerocercoid larvae are the infective stage for the definitive host (including humans).
Because humans do not generally eat undercooked minnows and similar small freshwater fish, these do not represent an important source of infection. Nevertheless, these small second intermediate hosts can be eaten by larger predator species, for example, trout, perch, and walleyed pike. In this case, the sparganum can migrate to the musculature of the larger predator fish and mammals can acquire the disease by eating these later intermediate infected host fish raw or undercooked. After ingestion of the infected fish, the plerocercoids develop into immature adults and then into mature adult tapeworms which will reside in the small intestine. The adults attach to the intestinal mucosa by means of the two bilateral grooves (bothria) of their scolex. The adults can reach more than 10 m (up to 30 ft) in length in some species such as D. latum, with more than 3,000 proglottids. One or several of the tape-like proglottid segments (hence the name tape-worm) regularly detach from the main body of the worm and release immature eggs in fresh water to start the cycle over again. Immature eggs are discharged from the proglottids (up to 1,000,000 eggs per day per worm) and are passed in the feces. The incubation period in humans, after which eggs begin to appear in the feces is typically 4–6 weeks, but can vary from as short as 2 weeks to as long as 2 years.[7] The tapeworm can live up to 20 years.