---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/functions/loadImageData.md
---
# Function: loadImageData()

> **loadImageData**(`uri`): `Promise`<[`SkData`](https://wcandillon.github.io/react-native-skia/)>

Defined in: [packages/react-native-spritestudio/src/core/SsTextureLoader.ts:209](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/core/SsTextureLoader.ts#L209)

The encoded bytes at `uri`, as Skia data.

`Skia.Data.fromURI` covers `file:` and `http:` and knows nothing about either
platform's asset storage — iOS keeps assets inside the `.app` and Android
inside the APK, where only `AAssetManager` reaches them. So an asset takes
the Layer 1 route, which is the same one the `.ssab` itself took.

## Parameters

### uri

`string`

## Returns

`Promise`<[`SkData`](https://wcandillon.github.io/react-native-skia/)>
