The localfireservice used seismic and acoustic equipment as well as a camera to locate the dog who was found about 4ft (1.2m) underground on Wednesday.
An 11-story building owned by apparel manufacturer Tung Hai Group caught fire in the Mirpur area of Dhaka after the late-shift workers had left for the day, local fire-service officials said.