io.getstream.cloud.CloudImageStorageClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream-java Show documentation
Show all versions of stream-java Show documentation
Stream Feeds Java Client for backend and android integrations
package io.getstream.cloud;
import io.getstream.core.StreamImages;
import io.getstream.core.exceptions.StreamException;
import io.getstream.core.http.Token;
import io.getstream.core.options.Crop;
import io.getstream.core.options.Resize;
import java.io.File;
import java.net.URL;
import java8.util.concurrent.CompletableFuture;
public final class CloudImageStorageClient {
private final Token token;
private final StreamImages images;
CloudImageStorageClient(Token token, StreamImages images) {
this.token = token;
this.images = images;
}
public CompletableFuture upload(String fileName, byte[] content) throws StreamException {
return images.upload(token, fileName, content);
}
public CompletableFuture upload(File content) throws StreamException {
return images.upload(token, content);
}
public CompletableFuture delete(URL url) throws StreamException {
return images.delete(token, url);
}
public CompletableFuture process(URL url, Crop crop) throws StreamException {
return images.process(token, url, crop);
}
public CompletableFuture process(URL url, Resize resize) throws StreamException {
return images.process(token, url, resize);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy