[android-components](../../index.md) / [mozilla.components.browser.thumbnails.storage](../index.md) / [ThumbnailStorage](index.md) / [saveThumbnail](./save-thumbnail.md)

# saveThumbnail

`fun saveThumbnail(sessionIdOrUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, bitmap: <ERROR CLASS>): Job` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/thumbnails/src/main/java/mozilla/components/browser/thumbnails/storage/ThumbnailStorage.kt#L82)

Stores the given thumbnail [Bitmap](#) into the disk cache with the provided session ID or url
as its key.

