We can convert liferay com.liferay.portlet.documentlibrary.model.DLFileEntry to java.io.File with help of below method.
File file1 = DLFileEntryLocalServiceUtil.getFile(user.getUserId(), dlFileEntry.getFileEntryId(), dlFileEntry.getVersion(), true);
File file1 = DLFileEntryLocalServiceUtil.getFile(user.getUserId(), dlFileEntry.getFileEntryId(), dlFileEntry.getVersion(), true);
Comments
Post a Comment