/** * 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); }