The arrestees were identified as Jahirul Islam, 30, Abdur Rahman Rajib, 27.
The victim filed a written complaint with Rab-11 in this regard on October 14, said Officer-in-Charge of Faridganj Police Station Md Shaheed Hossain.
The miscreants picked up the victim on July 9 while she was alone in her home, he said.
They raped the victim and recorded video footage of the vile act.
Since then, the rapists were demanding money from the victim threatening to spread the video on the internet.
The victim was sent to hospital for medical tests, OC said.
Also read: College student gang-raped in Gazipur, 2 held