mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-02 20:14:53 +00:00
15 lines
384 B
Java
15 lines
384 B
Java
package com.openisle.service;
|
|
|
|
/**
|
|
* Abstract service for uploading images.
|
|
*/
|
|
public abstract class ImageUploader {
|
|
/**
|
|
* Upload an image and return its accessible URL.
|
|
* @param data image binary data
|
|
* @param filename name of the file
|
|
* @return accessible URL of the uploaded file
|
|
*/
|
|
public abstract String upload(byte[] data, String filename);
|
|
}
|