# HtmlBinaryAssetFile

One shared binary asset, such as a font, served beside a page's runtime files.

 Class  

`ChartForgeX.Interactivity.Html`

**Namespace**

`ChartForgeX.Interactivity.Html`

**Assembly**

`ChartForgeX.Interactivity.Html`

**Source**

[HtmlBinaryAssetFile.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L35)

**Modifiers**

sealed

One shared binary asset, such as a font, served beside a page's runtime files. Like [HtmlAssetFile](/api/chartforgex-interactivity-html-htmlassetfile/), the file name carries a content hash, so a changed file never collides with a cached copy.

## Inheritance

- object
- HtmlBinaryAssetFile

## Usage

 Explore 3 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [HtmlOfficeImoAssets.PdfFonts](/api/chartforgex-interactivity-html-htmlofficeimoassets/#method-pdffonts)
- Property [HtmlOfficeImoAssets.PdfFontBold](/api/chartforgex-interactivity-html-htmlofficeimoassets/#property-pdffontbold)
- Property [HtmlOfficeImoAssets.PdfFontRegular](/api/chartforgex-interactivity-html-htmlofficeimoassets/#property-pdffontregular)

 Filter members   

    Show inherited   

 

## Methods

 `public byte[] GetBytes()` [#](#method-getbytes) 

[HtmlBinaryAssetFile.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L35)

Returns the bytes a host writes or serves for this file.

Returns

 `byte[]` A new array on each call. 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string FileName { get; }` [#](#property-filename) 

[HtmlBinaryAssetFile.cs:22](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L22)

Gets the content-addressed file name, for example archivo-pdf.1a2b3c4d5e6f.ttf.

 `public string ContentType { get; }` [#](#property-contenttype) 

[HtmlBinaryAssetFile.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L25)

Gets the MIME type to serve the file with, for example font/ttf.

 `public string Integrity { get; }` [#](#property-integrity) 

[HtmlBinaryAssetFile.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L28)

Gets the Subresource Integrity value (sha384-…) of the bytes.

 `public int Length { get; }` [#](#property-length) 

[HtmlBinaryAssetFile.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Interactivity.Html/HtmlBinaryAssetFile.cs#L31)

Gets the size of the file in bytes.

<!-- PowerForge markdown artifact sha256:1210F56BF4C935119F53659BAB06337497F78C77A48E0F18909E7ADE3F76F5A1 -->
