Ecuador is working on a deal with Britain that would allow the latter to send WikiLeaks founder Julia Assange to Sweden without fears of being extradited to the United States, reports said.

In an interview with Reuters on Wednesday, Ecuadorian Foreign Minister Ricardo Patino expressed confidence that such an arrangement would be secured by Quito for Assange, who has been under the diplomatic protection of Ecuador's embassy in London.

"I'm convinced we'll find a way out ... I'm hopeful because the global mood that the Julian Assange case is generating will help us to find a way out," Patino told the news agency.

He made the remarks in the aftermath of the diplomatic row that was sparked last week when London advised Quito that its local laws could support the forcible entry of British police officers into the premises of the Ecuadorian Embassy to arrest the Australian whistleblower.

Assange has been holed up inside the embassy since June this year following the exhaustion of all his legal options to prevent Britain from sending him to Sweden, where authorities want to interview him for alleged rape cases brought up by two former WikiLeaks volunteers.

Ecuador granted his asylum application earlier this month but the British government would not budge in giving him safe passage, insisting that it needs to fulfil its legal obligations with Sweden.

Patino said it's next to impossible for Britain to change its mind on the Assange affair but he remains hopeful that London would at least give the Aussie citizen a guarantee that would ensure Assange would not end up in another country.

Assange has maintained that Sweden would eventually send him to the U.S., where some politicians want him to face charges of espionage and sedition, which could merit him life imprisonment or the death penalty.

He believes he is under persecution when his anti-secrecy website published confidential documents of the U.S. government from 2010 through 2011, which hugely embarrassed Washington.

U.S. authorities, however, were consistent in denying that Assange is a target for extradition by the American government, adding that no charges were forthcoming against the former computer hacker.

Yet Ecuador believes otherwise as its president, Rafael Correa, is convinced that Washington will want to see Assange punished for his acts.

It was the main reason he approved the asylum application of the Australian, Correa said earlier.

But the same protection from Ecuador will not be needed by Assange as soon as he gets the assurance that Swedish authorities will not deliver him to the Americans, the president added.

According to Correa, Assange is all willing to fly to Sweden provided that gets hold of written guarantees from both London and Stockholm.

Ecuador said the whole episode should conclude well if "Great Britain could seek to move forward with the guarantees, because they have repeatedly said that they don't want to provide the safe passage."

"The option of the guarantees is possibly more feasible ... We should get clear, written guarantees from the countries with which we're negotiating," Patino told Reuters.

It is understood that Britain and Ecuador had already discussed the matter when British Foreign Secretary William Hague met earlier with Ecuador's vice president, Lenin Moreno, which Reuters said was confirmed both by London and Quito.