All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vfdtech.interfaces.IFileUtil Maven / Gradle / Ivy

Go to download

A utilities service with generic tools implementation. Can be plugged into your java project

There is a newer version: 0.3.5
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy