/** * Returns the file suffix for the extension. * @param extension the extension name * @param blob the target BLOB * @return the target file name suffix */ public static String getSuffix(String extension, Blob blob) { return String.format(".%s.%s", extension, blob.getFileExtension()); } }