/** * Return byte array of Thumbnail * * @param thumbnail * @return a byte array * @throws IOException */ public byte[] getThumbnail(Thumbnail thumbnail) throws IOException { byte[] buf = new byte[(int) getThumbnailLength(thumbnail)]; return getThumbnail(thumbnail, buf); }
byte[] thumbnail = ioService.getThumbnail(thumbnailMetadata);
return ioService.getThumbnail(thumbMetaData); } catch (IOException e) { if (log.isDebugEnabled()) { return ioService.getThumbnail(thumbnailMetadata); } catch (IOException e) { log.error("Could not obtain thumbnail", e);