Mahmoud Hussein’s release order follows more than two years of imprisonment without charge or trial.
The court ruled on his release on Tuesday but following an appeal by the prosecution Hussein was brought to a different court on Thursday. It upheld the earlier decision.
However, it remained unclear exactly when the Qatar-based Egyptian producer will be freed from prison.
Hussein’s lawyer Taher Abul Nasr said his release “is expected to take place within days”.
Az-Zahra Hussein, his daughter, said in a Facebook post her father will be released “with precautionary measures”, and will soon be transferred to a police station from prison.
Gamal Eid, executive director of the Arabic Network for Human Rights Information, said under Egyptian law Hussein must be freed within 24 hours.
“This is a final court ruling but the problem is that security forces tend to delay releases when they do not like those freed,” said Eid, adding in some previous cases the execution of the release order took several months.