Free Trial
10 days, no credit_card

<< More Tutorials

How to use rethumb in Kotlin?

To use rethumb in Kotlin try the following code:

import java.nio.channels.Channels

object KotlinRethumbGenericExample {

    @JvmStatic fun main(args: Array<String>) {

        val website = URL("")

        val rbc = Channels.newChannel(website.openStream())
        val fos = FileOutputStream("beach.thumb.jpg"), 0, java.lang.Long.MAX_VALUE)

Start using this example now

Use the following commands to get started:

$ git clone
$ cd rethumb-kotlin-examples
$ kotlinc generic.kt -include-runtime -d generic.jar
$ java -jar generic.jar

More examples using Kotlin