You may have seen from the press a high profile case where someone has been released from jail pending a re-trial following his appearance at the Court of Appeal. There was a clear miscarriage of justice.
I really felt for him. I had a very similar thing happen to me. The only good thing was that I was never imprisoned.