Throughout the whole of 19th century, opium was widely available in the pure form, pills, tinctures and later the isolated alkaloid morphine became widely used as well. The reasons for this ubiquity are pretty much outlined in my answer here - even if I talk about the U.S. it very much applies to Britain as well, barring the specifics of legislation.