A man caught with five wraps of heroin stored in his underwear has been warned he could be facing a jail term.

Daniel Perkins pleaded guilty to possessing the drugs with intent so supply when he appeared at Swindon Crown Court on Friday.

The 31-year-old had the deals of heroin when he was arrested at an address in Queens Crescent, Chippenham, on Wednesday April 18, 2012.

The wraps, weighing just under three quarters of a gram, were found stored between his buttocks.

Prosecutors say text messages recovered from his phone show he had been dealing for the three months leading up to his arrest.

Judge Douglas Field adjourned the case to May 30 to give the probation service time to compile a pre-sentence report.

He released Perkins, of Erith, east London, on conditional bail and warned him: "The fact I am granting bail should not be taken as an indication of the final outcome."