# Embed a thumbnail in a qvf file

Embed a thumbnail in a qvf file, using the [SetAppProperties Method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-doc-setappproperties.htm).

Information noteThis example is only meaningful with Qlik Sense Desktop.

## Example

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/CreatingAppLoadingData/CreateApps/embed-thumbnail-in-app.htm)

#### The goal is to embed a thumbnail in a qvf file in Qlik Sense Desktop.

The first step is to add the thumbnail to the app and save the app so that the thumbnail becomes embedded in the qvf file.

The last step is to list the media files and check that the thumbnail URL is correct.

1. Add the thumbnail Qlik\_default\_feathers.png to the app. The handle of the app is 1.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "SetAppProperties",
  "handle": 1,
  "params": [
    {
      "qThumbnail": "/content/default/Qlik_default_feathers.png"
    }
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {}
}
```

The thumbnail is added.

[SetAppProperties Method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-doc-setappproperties.htm).

2. Save the app.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "DoSave",
  "handle": 1,
  "params": []
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {},
  "change": [
    1
  ]
}
```

The thumbnail is now embedded in the qvf file.

[DoSave method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-doc-dosave.htm).

3. List the media files. Check that the URL of the image Qlik\_default\_feathers.png links to the media folder.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "GetMediaList",
  "handle": 1,
  "params": []
}
```

The engine returns:

{ "jsonrpc": "2.0", "id": 4, "result": { "qReturn": true, "qList": { "qItems": [ { "qUrlDef": "/content/default/Qlik\_default\_feathers.png", "qUrl": "/content/default/Qlik\_default\_feathers.png" }, { "qUrlDef": "/content/default/Qlik\_default\_flower.png", "qUrl": "/content/default/Qlik\_default\_flower.png" }, { "qUrlDef": "/content/default/Qlik\_default\_green.png", "qUrl": "/content/default/Qlik\_default\_green.png" }, { "qUrlDef": "/content/default/Qlik\_default\_leaf.png", "qUrl": "/content/default/Qlik\_default\_leaf.png" }, { "qUrlDef": "/content/default/Qlik\_default\_orange.png", "qUrl": "/content/default/Qlik\_default\_orange.png" }, { "qUrlDef": "/content/default/Qlik\_default\_plant.png", "qUrl": "/content/default/Qlik\_default\_plant.png" }, { "qUrlDef": "/content/default/Qlik\_default\_qlikCircles.png", "qUrl": "/content/default/Qlik\_default\_qlikCircles.png" }, { "qUrlDef": "/content/default/movies%20-%20cover%20image.png", "qUrl": "/content/default/movies%20-%20cover%20image.png" }, { "qUrlDef": "/content/default/movies%20-%20fruit.png", "qUrl": "/content/default/movies%20-%20fruit.png" }, { "qUrlDef": "/content/default/movies-colors.png", "qUrl": "/content/default/movies-colors.png" }, { "qUrlDef": "/content/default/movies\_thumbnail.png", "qUrl": "/content/default/movies\_thumbnail.png" }, { "qUrlDef": "/content/default/thumb-executive\_dashboard.png", "qUrl": "/content/default/thumb-executive\_dashboard.png" }, { "qUrlDef": "/content/default/thumb-helpdesk\_management.png", "qUrl": "/content/default/thumb-helpdesk\_management.png" }, { "qUrlDef": "/content/default/thumb-sales\_discovery.png", "qUrl": "/content/default/thumb-sales\_discovery.png" }, { "qUrlDef": "/media/6247aeb3-7952-4de8-9baa-5802bf2154dd/Qlik\_default\_feathers.png", "qUrl": "/media/e4b18409a57fb30e2ced854d828923f4/6247aeb3-7952-4de8-9baa-5802bf2154dd/Qlik\_default\_feathers.png" }

The list of the media files is displayed.

[GetMediaList method](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/service-doc-getmedialist.htm).

Media files located:

* in the /content/default/ folder are outside the qvf file.
* in the /media/ folder are embedded in the qvf file.

In this example, the image Qlik\_default\_feathers.png is embedded in the qvf file (qUrlDef": "/media/6247aeb3-7952-4de8-9baa-5802bf2154dd/Qlik\_default\_feathers.png). This image is also stored on the desktop ( "qUrlDef": "/content/default/Qlik\_default\_feathers.png").

For more information about qMediaList, see [MediaList](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-medialist.htm).

## Learn more

* [Embed an image in an object](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/CreateSheets/embed-image-in-object.htm)