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

panda.ex.gcloud.vision.images.Image Maven / Gradle / Ivy

Go to download

Panda Tube is a Web Service API client for WordPress XML-RPC, Google Vision API, etc.

The newest version!
package panda.ex.gcloud.vision.images;

import panda.codec.binary.Base64;

public class Image {
	private String content;
	private ImageSource source;

	public Image() {
	}
	
	public Image(String content) {
		this.content = content;
	}

	public Image(ImageSource source) {
		this.source = source;
	}

	public static Image fromContent(byte[] content) {
		return new Image(Base64.encodeBase64String(content));
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}

	public ImageSource getSource() {
		return source;
	}
	public void setSource(ImageSource source) {
		this.source = source;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy