> For the complete documentation index, see [llms.txt](https://help.holixa.com/holixa-erp-connector/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.holixa.com/holixa-erp-connector/data-interface-reference-manual/using-thumbnail-image-data.md).

# Using thumbnail image data

There is an option to write image data for the exported Vault entity into the DI – EcENTITY.thumbnail. To save the image to disk, cast sql value as byte array and write this data as jpg file.

To get an .NET FRAMEWORK System.Drawing.Image object you can use this sample:

```clike
/// <summary>
/// 
http://justonesandzeros.typepad.com/blog/2011/05/viewing-thumbnails.html

/// </summary>
/// <param name="propVal">the value of the property Thumbnail</param>
/// <param name="width">image width</param>
/// <param name="height">image height</param>
/// <returns></returns>
public static System.Drawing.Image GetThumbnail(object propVal, int width, int height)
{
if (propVal == null || false == (propVal is byte[])) return null;
byte[] thumbnailRaw = (byte[])propVal; System.Drawing.Image retVal = null;
using (System.IO.MemoryStream ms = new System.IO.MemoryStream(thumbnailRaw))
{
try
{
}
ms.Seek(12, System.IO.SeekOrigin.Begin); System.Drawing.Imaging.Metafile metafile =
new System.Drawing.Imaging.Metafile(ms); retVal = metafile.GetThumbnailImage(width, height,
new System.Drawing.Image.GetThumbnailImageAbort(GetThumbnailImageAbort), System.IntPtr.Zero);
catch
{
retVal = null;
}
if (retVal == null)
{
try
{
}
ms.Seek(0, System.IO.SeekOrigin.Begin);
System.Drawing.Image rawImage = System.Drawing.Image.FromStream(ms, true); retVal = rawImage.GetThumbnailImage(width, height,
new System.Drawing.Image.GetThumbnailImageAbort(GetThumbnailImageAbort), System.IntPtr.Zero);
catch
{
retVal = null;
}
}
}
return retVal;
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.holixa.com/holixa-erp-connector/data-interface-reference-manual/using-thumbnail-image-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
