You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i get the data from content, it does not load all chapter data. It got cut off specially when there's an image that supposed to display next to text and chapter like illustration display only single image
The text was updated successfully, but these errors were encountered:
Hello sir/ma'am... Is the library can't get all chapter data? because when I get chapter data/content using
TOCReference selectedChapter = tocReferences.get(0);
String chapterHref = selectedChapter.getCompleteHref();
loadChapterData(chapterHref);
then load it using
private void loadChapterData(String href){
Resource resource = book.getResources().getByHref(href);
if(resource != null){
String mimeType = resource.getMediaType().getName();
if("application/xhtml+xml".equals(mimeType) || "text/html".equals(mimeType)){
String content = new String(resource.getData(), StandardCharsets.UTF_8);
}
}
}
When i get the data from content, it does not load all chapter data. It got cut off specially when there's an image that supposed to display next to text and chapter like illustration display only single image
The text was updated successfully, but these errors were encountered: