Doherty was escorted to a police station near the court
Singer Pete Doherty has been charged with possessing heroin after an incident at Gloucester Crown Court.
On Monday the Babyshambles frontman was fined and banned from driving after admitting careless and drink-driving following a gig in the city.
Moments later he was arrested and officers escorted him from the court to a police station across the road.
A Gloucestershire Police spokeswoman said Doherty had been charged and bailed to appear in court in January.
The spokeswoman added: "The 30-year-old man from Wiltshire arrested in Gloucester yesterday has been charged with possession of heroin."