Free Trial
10 days, no credit_card

<< More Tutorials

How to use rethumb in Java?

To use rethumb in Java try the following code:

import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;

public class JavaRethumbExample
    public static void main(String [] args) throws Exception {
        URL website = new URL("");

        ReadableByteChannel rbc = Channels.newChannel(website.openStream());
        FileOutputStream fos = new FileOutputStream("beach.thumb.jpg");
        fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);

Start using this example now

Use the following commands to get started:

$ git clone
$ cd rethumb-java-examples
$ ... Use your IDE of choice to handle the file ""

More examples using Java