Hi All,Thanks for help and option is working fine but take the url using URIobj.toASCIIString(). URL url= new URL("url"); URI uri = new URI(url.getProtocol(), url.getUserInfo(), url.getHost(), url.getPort(), url.getPath(), url.getQuery(), url.getRef()); ...