The Court of Appeal refused Julian Assange’s appeal for the detention order issued in 2010 to be revoked.
Julian Assange, who denies assault allegations, has sought refuge in the Ecuadorean embassy in London to avoid extradition.
If he is sent to Sweden, he says he fears charges in the US over the leaking of secret government documents.
Two women in Sweden accuse Julian Assange of assault.
Thursday’s court decision ruled on an appeal against a similar decision by a lower court.
“There is no reason to set aside the detention solely because Julian Assange is in an embassy and the detention order cannot be enforced at present for that reason,” the Svea Court of Appeal in Stockholm said in a statement.
“The reasons for detention still outweigh the reasons to the contrary since Julian Assange is suspected of crimes of a relatively serious nature and there is a great risk that he will evade legal proceedings or punishment if the detention order is set aside.”
The Ecuadorean government granted asylum to Julian Assange in 2012 after the UK Supreme Court refused to reopen his appeal against extradition.
Julian Assange has not been formally indicted in Sweden, but prosecutors want to question him over allegations of sexual misconduct and rape involving two women he met during a visit to the Scandinavian country in 2010.
He denies the allegations and has said they are part of a smear campaign against him.
Julian Assange fears that, if he were extradited to Sweden, he would be extradited again to the US, where he could face charges over the release of thousands of secret documents by WikiLeaks.
Chelsea Manning, an American soldier formerly known as Bradley Manning, was sentenced to 35 years in prison in the US for passing documents to WikiLeaks.
1CFdTJjbJpAImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…