Skip to content

pixelcarrot/base64image

Repository files navigation

Base64Image

Example

Bitmap to Base64 String

Base64Image.encode(bitmap) { base64 ->
    base64?.let {
        // success
    }
}

Base64 String to Bitmap

Base64Image.decode(base64, { bitmap ->
    bitmap?.let {
        // success
    }
})

Installation

dependencies {
    implementation 'com.pixelcarrot.base64image:base64image:1.0.0'
}

Author

Justin Nguyen, nguyen.cocoa@gmail.com

License

Base64Image is available under the MIT license. See the LICENSE file for more info.

About

Android Kotlin library to convert bitmap and base64 string

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages