org.vfdtech.interfaces.IFileUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utilities-and-generic-tools Show documentation
Show all versions of utilities-and-generic-tools Show documentation
A utilities service with generic tools implementation. Can be
plugged into your java project
package org.vfdtech.interfaces;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
public interface IFileUtil {
public String bufferedToBase64String (final BufferedImage img, final String formatName);
public File buildFileFromString(String img, String[] allowedMimeTypes) throws Exception;
public String compressImageString(String base64Img, String[] allowedMimeTypes);
public BufferedImage compressImage(String imageString, int targetWidth, int targetHeight) throws IOException;
public HashMap doFileValidation(String selfieImage, String[] allowedMimeTypes) throws Exception;
public HashMap getFileAndFileExtension(String base64ImageString);
public String convertFileToString(File file);
}