[android-components](../../index.md) / [mozilla.components.browser.icons.utils](../index.md) / [IconDiskCache](index.md) / [getIconData](./get-icon-data.md)

# getIconData

`fun getIconData(context: <ERROR CLASS>, resource: `[`Resource`](../../mozilla.components.browser.icons/-icon-request/-resource/index.md)`): `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`?` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/icons/src/main/java/mozilla/components/browser/icons/utils/IconDiskCache.kt#L88)

Overrides [LoaderDiskCache.getIconData](../../mozilla.components.browser.icons.loader/-disk-icon-loader/-loader-disk-cache/get-icon-data.md)

