An Iranian official was quoted as saying both boxes were damaged but that it was believed their data could still be retrieved.
The Ukraine International Airlines Boeing 737 crashed earlier on Wednesday, killing all 176 people aboard shortly after taking off from Tehran's Imam Khomeini airport.