Closed devendroid closed 6 years ago
Hey, i resolved this issue In HtmlTask class remove space in string String strUrl = urls[0]; String withoutSpace= strUrl.replaceAll("\u0020", "%20"); try { URL url = new URL(withoutSpace); URLConnection urlConnection = url.openConnection(); InputStream inputStream = urlConnection.getInputStream(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, AppUtil.charsetNameForURLConnection(urlConnection))); StringBuilder stringBuilder = new StringBuilder(); String line; while ((line = bufferedReader.readLine()) != null) { stringBuilder.append(line); } return stringBuilder.toString(); } catch (IOException e) { Log.e(TAG, "HtmlTask failed", e); } return null; }
@vikasrairajput thanks for your comment, but my issue did not resolved, did you check my given epub file, is this showing at your end ?
sorry,your epub also not working on my side..
@devsideal This bug has been fixed in r2-streamer-java v0.1.3 - https://github.com/readium/r2-streamer-java/commit/3f613515a5967e148660cf45c11461acad5284a6
And integreated this version of r2-streamer-java in v0.3.5 of FolioReader. Also you can use v0.3.6 which makes FolioReader as a Singleton.
@mahavir155 @GautamChibde We can close this issue.
Its not supporting all epubs i checked with some of the epubs that's opening by iBook and calibre but not showing or getting crashed in FR, What is criteria to show epub by FR ?
One of them this epub is not showing contents !
Error Log: