The advantages or disadvantages of licensing

What are the advantages or disadvantages of licensing as a means of gaining access to foreign markets?