A seamstress buried in the wreckage of a collapsed garment factory building in Bangladesh for 17 days was rescued today, a miraculous moment set against a scene of unimaginable horror, where the death toll shot past 1,000.

Reshma was in such good shape she was able to walk, according to one rescuer. She said she survived on dried food and bottled water. She was discovered near a Muslim prayer room in the basement of the eight-storey Rana Plaza building, where crews have been focused on recovering bodies, not rescuing survivors, since late April.

"I heard voices of the rescue workers for the past several days. I kept hitting the wreckage with sticks and rods just to attract their attention," she told the private Somoy TV from her hospital bed as doctors and nurses milled about, giving her saline and checking her condition.

"No one heard me. It was so bad for me. I never dreamed I'd see the daylight again," she said.

"There was some dried food around me. I ate the dried food for 15 days. The last two days I had nothing but water. I used to drink only a limited quantity of water to save it. I had some bottles of water around me," she said.

She finally got the crews' attention when she took a steel pipe and began banging it, said Abdur Razzak, a warrant officer with the military's engineering department who first spotted her in the wreckage. The workers ran into the dark rubble, eventually getting flashlights, to free her, he said.

They ordered the cranes and bulldozers to immediately stop and used handsaws and welding and drilling equipment to cut through the iron rod and debris still trapping her. They gave her water, oxygen and saline as they worked to free her.

"I heard her say, `I am alive, please save me.' I gave her water. She was OK," said Miraj Hossain, a volunteer who crawled through the debris to help cut Begum free.

In what is being called a miraculous rescue, a woman known only as Reshma was pulled Friday from the wreckage of a garment factory collapse in Savar near Dhaka in Bangladesh, and was resting later in a hospital bed in Dhaka. (Somoy TV via AP Video/Associated Press )

When Reshma was freed after 40 minutes, the crowd erupted in wild cheers. She was rushed to a military hospital in an ambulance, but her rescuers said she was in shockingly good condition, despite her ordeal.

Abdur Razzak, a warrant officer with the military's engineering department who first spotted her in the wreckage, said she could even walk.

"She was fine, no injuries. She was just trapped. The space was wide," said Lt. Col. Moyeen, an army official at the scene.

Prime minister calls rescued woman

Begum was working in a factory on the second floor of Rana Plaza on April 24 when the building began collapsing around her. She said she raced down a stairwell into the basement, where she became trapped by the wreckage.

Her long hair got stuck under the rubble, but she used sharp objects to cut her hair and free herself, said Maj. Gen. Chowdhury Hasan Suhrawardy, the head of the local military units in charge of the disaster site.

Reshma told her rescuers there were no more survivors in her area. Workers began tearing through the nearby rubble anyway, hoping to find another person alive.

'We got her back just when we had lost all our hope to find her alive.'—Asma, sister of Reshma, who was pulled out of the rubble alive

"Reshma told me there were three others with her. They died. She did not see anybody else alive there," Suhrawardy said. "We will continue our search until a survivor or a dead body is there."

Reshma's sister, Asma, said she and her mother kept a vigil for the seamstress, who is from the rural Dinajpur district, 270 kilometres north of Dhaka. She said they had been losing hope amid the endless string of grim days, when only scores of dead bodies were removed from the rubble.

"We got her back just when we had lost all our hope to find her alive," she told Somoy TV. "God is so merciful."

The woman survived for more than two weeks in temperatures that touched the mid-30s C. She scrounged for whatever food she could find, Suhrawardy said.

Then, when the workers with bulldozers and cranes got close to the area where she was trapped, she took a steel pipe and began banging it to attract attention, Razzak said. The workers ran into the dark rubble, eventually getting flashlights, to free her, he said.

Hundreds of people who had been engaged in the grim job of removing decomposing bodies from the site raised their hands together in prayer for her survival.

"Allah, you are the greatest, you can do anything. Please allow us all to rescue the survivor just found," said a man on a loudspeaker leading the supplicants. "We seek apology for our sins. Please pardon us, pardon the person found alive."

The rescue was broadcast on television across Bangladesh. The prime minister rushed to the hospital, as did the woman's family to embrace a loved one they thought they'd never again see alive.

More than 2,500 people were rescued in the immediate aftermath of the disaster, but crews had gone nearly two weeks without discovering anyone alive. The last survivor had been found April 28, and even her story ended tragically. As workers tried to free Shahina Akter, a fire broke out and she died of smoke inhalation.

Prime Minister Sheikh Hasina called Reshma in the hospital, and the rescued woman began crying on the phone, Suhrawardy said. She told Hasina: "'I am fine, please pray for me,'" he said.

Hasina, whose government has come under criticism for its lax oversight over the powerful garment industry, was racing to the hospital by helicopter to meet her, and congratulated the rescuers, officials said.

"This is an unbelievable feat," Hasina was quoted as saying by her assistant, Mahbubul Haque Shakil.

Death toll from factory collapse surpasses 1,000

The death toll from the disaster soared past 1,000 Friday, with officials confirming that 1,045 bodies had been recovered from the rubble of the fallen building, which had housed five garment factories employing thousands of workers.

The disaster has raised alarm about the often deadly working conditions in Bangladesh's $20 billion garment industry, which provides clothing for major retailers around the globe.

Brig.-Gen. Mohammed Siddiqul Alam Shikder, an army official overseeing the recovery work, said the bodies being recovered were badly decomposed and identification was difficult.

"We are working carefully," he said. "If we get any ID card or mobile phone with them, we can still identify them. Our sincere effort is to at least hand over the bodies to the families."

Brig.-Gen. Azmal Kabir, a top official of the military's engineering section, said more than half of the estimated 7,000 tons of debris have been removed from the site but he did not know when the work would be finished.