---
title: Entidad FileInfo y estructuras derivadas (2022/06)
slug: develop/es/entidad-fileinfo-y-estructuras-derivadas-202206
docTags: 
createdAt: 2025-03-11T07:03:30.743Z
---

FileInfo está relacionado principalmente con la entidad Presentation, pero también se utiliza de forma limitada por otras entidades. Consulte [Asignación de referencias de tipos de medios](docId\:kxqzkkwKk_7xGNpElzjBo) para obtener más información sobre el uso de este tipo de datos.

La colección FileInfo puede contener los siguientes elementos en representación JSON:

## Entidad DynamicPlaylistFile

DynamicPlaylistFlle (propiedad 'FileInfo.Type' establecida en "DynamicPlaylist") se deriva de la estructura 'StoredFile' y se utiliza para hacer referencia a listas de reproducción dinámicas existentes en BSN por ID. Consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type"):

```json
{
   "type": "DynamicPlaylist", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "My First Dynamic Playlist", // [string]
   "size": 912, // [uint]
   "hash": "SHA1:E7BA1A1668AB68E6A0090A0A950D43A25A316D8E", // [string]
   "creationDate": "2017-01-15T23:46:46.287Z", // [DateTime]
   "lastModifiedDate": "2018-01-11T10:17:17.960Z", // [DateTime]
   "id": 31711, // [int]
   "path": "http://localhost:8081/Content/DynamicPlaylists/My First Dynamic Playlist.xml" // [URI]
}
```

## Entidad LiveMediaFeedFile

LiveMediaFeedFile (propiedad 'FileInfo.Type' establecida en "LiveMediaFeed") se deriva de la estructura 'StoredFile' y se utiliza para hacer referencia a fuentes de medios en vivo existentes en BSN por ID. Consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type"):

```json
{
   "type": "LiveMediaFeed", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "My First Live Media Feed", // [string]
   "size": 378, // [uint]
   "hash": "SHA1:4DA06FEE7FDDA07511BC4A876CF79989D034550B", // [string]
   "creationDate": "2017-02-08T00:17:38.130Z", // [DateTime]
   "lastModifiedDate": "2017-06-08T11:32:41.280Z", // [DateTime]
   "id": 47324, // [int]
   "path": "http://localhost:8081/Content/LiveMediaFeeds/My First Live Media Feed.xml" // [URI]
}
```

## Entidad LiveTextFeedFile

LiveTextFeedFile (propiedad 'FileInfo.Type' establecida en "LiveTextFeed") se deriva de la estructura 'StoredFile' y se utiliza para hacer referencia a fuentes de texto en vivo existentes en BSN por ID. Consulte el siguiente ejemplo (sus valores variarán en todos los casos excepto en "type"):

```json
{
   "type": "LiveTextFeed", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "My First Live Text Feed", // [string]
   "size": 912, // [uint]
   "hash": "SHA1:2C95B879DD75A398CB37AAA7851F3ACBC5CE7419", // [string]
   "creationDate": "2017-02-08T00:17:57.573Z", // [DateTime]
   "lastModifiedDate": "2018-01-09T23:39:02.123Z", // [DateTime]
   "id": 47325, // [int]
   "path": "http://localhost:8081/Content/Eugene/Feeds/My First Live Text Feed.xml" // [URI]
}
```

## Asignación de referencias de tipos de medios

Dada la jerarquía de tipos de datos FileInfo, este gráfico describe la asignación entre tipos de medios y cómo hacer referencia a ellos en una solicitud de creación o actualización de presentaciones. Tenga en cuenta que los elementos se actualizarán al tipo coincidente más alto en la respuesta del servidor. Por ejemplo, si hace referencia a "Dynamic Playlist" mediante el elemento "StoredFile", se devolverá como un "DynamicPlaylistFile".

|                     | (Externo) | Auxiliar | Hoja de estilos | Fuente | Texto | Imagen | Video | Audio | Lista de reproducción dinámica | Lista de reproducción etiquetada | Fuente de texto en vivo | Fuente multimedia en vivo | Página web |
| ------------------- | --------- | -------- | --------------- | ------ | ----- | ------ | ----- | ----- | ------------------------------ | -------------------------------- | ----------------------- | ------------------------- | ---------- |
| NewFile             | X         | X        | X               | X      | X     | X      | X     | X     |                                |                                  |                         |                           |            |
| RemoteFile          | X         | X        | X               | X      | X     | X      | X     | X     | X                              | X                                | X                       | X                         | X          |
| StoredFile          |           | X        | X               | X      | X     | X      | X     | X     | X                              | X                                | X                       | X                         | X          |
| MediaFile           |           |          |                 |        | X     | X      | X     | X     |                                |                                  |                         |                           |            |
| DynamicPlaylistFile |           |          |                 |        |       |        |       |       | X                              |                                  |                         |                           |            |
| TaggedPlaylistFile  |           |          |                 |        |       |        |       |       |                                | X                                |                         |                           |            |
| LiveTextFeedFile    |           |          |                 |        |       |        |       |       |                                |                                  | X                       |                           |            |
| LiveMediaFeedFile   |           |          |                 |        |       |        |       |       |                                |                                  |                         | X                         |            |
| WebPageFile         |           |          |                 |        |       |        |       |       |                                |                                  |                         |                           | X          |

## Entidad MediaFile

MediaFile (propiedad 'FileInfo.Type' establecida en "Media") derivada de la estructura 'StoredFile', y se utiliza para hacer referencia a archivos cargados visibles en la Biblioteca de Contenido de BSN por ID. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "Media", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "Odessa Rain.jpg", // [string]
   "size": 226675, // [uint]
   "hash": "SHA1:4B55491958FC06E904D78BF2C965B47629FC5D16", // [string]
   "creationDate": "2017-05-22T16:20:26.430Z", // [DateTime]
   "lastModifiedDate": "2016-09-20T09:39:42.253Z", // [DateTime]
   "id": 64947, // [int]
   "mediaType": "Image", // one of { "Text", "Image", "Video", "Audio" } enumeration values
   "path": "http://localhost:8081/Content/Images/782e4c7d-f5a1-4b21-bd76-3706fff20063.jpg" // [URI]
}
```

## Entidad NewFile

NewFile (propiedad 'FileInfo.Type' establecida en "New") se deriva de la estructura abstracta 'FileInfo', y se utiliza para cargar archivos pequeños y para la creación o actualización completa de presentaciones. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "New", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "hello.txt", // [string]
   "size": 12, // [uint]
   "hash": "", // [string]
   "creationDate": null, // [DateTime]
   "lastModifiedDate": null, // [DateTime]
   "body": "SGVsbG8gV29ybGQh", // [string]
   "transferEncoding": "BASE64" // one of { "None", "BASE64" } enumeration values
}
```

## Entidad RemoteFile

RemoteFile (propiedad 'FileInfo.Type' establecida en "Remote") se deriva de la estructura abstracta 'FileInfo', y se utiliza para hacer referencia a recursos remotos o incluso archivos cargados en BSN por URL. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "Remote", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "autoplugins.brs", // [string]
   "size": 222, // [uint]
   "hash": "SHA1:EC121A89DFEE4E62AA94FAC4B9D80F13EA6B0FD6", // [string]
   "creationDate": null, // [DateTime]
   "lastModifiedDate": null, // [DateTime]
   "path": "https://bsn-staging.s3.amazonaws.com/Content/Autoplugins/autoplugins-EC121A89DFEE4E62AA94FAC4B9D80F13EA6B0FD6.brs" // one of { "None", "BASE64" } enumeration values
}
```

## Entidad StoredFile

StoredFile (propiedad 'FileInfo.Type' establecida en "Stored") se deriva de la estructura abstracta 'FileInfo', y se utiliza para hacer referencia a cualquier archivo cargado en BSN por ID. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "Stored", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "autoplugins.brs", // [string]
   "size": 222, // [uint]
   "hash": "SHA1:EC121A89DFEE4E62AA94FAC4B9D80F13EA6B0FD6", // [string]
   "creationDate": null, // [DateTime]
   "lastModifiedDate": null, // [DateTime]
   "id": 9804728, // [int]
   "path": "https://bsn-staging.s3.amazonaws.com/Content/Autoplugins/autoplugins-EC121A89DFEE4E62AA94FAC4B9D80F13EA6B0FD6.brs" // [URI]
}
```

## Entidad TaggedPlaylistFile

TaggedPlaylistFile (propiedad 'FileInfo.Type' establecida en "TaggedPlaylist") se deriva de la estructura 'StoredFile', y se utiliza para hacer referencia a listas de reproducción etiquetadas existentes en BSN por ID. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "TaggedPlaylist", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "My First Tagged Playlist", // [string]
   "size": 0, // [uint]
   "hash": "SHA1:E7BA1A1668AB68E6A0090A0A950D43A25A316D8E", // [string]
   "creationDate": "2017-02-08T00:00:55.273Z", // [DateTime]
   "lastModifiedDate": "2017-02-08T00:00:55.273Z", // [DateTime]
   "id": 47323, // [int]
   "path": "http://localhost:8080/bs/GetFile.ashx?type=TaggedPlaylist&token=7E2DBC0CC21E2449D06CA32836AD86BB" // [URI]
}
```

## Entidad WebPageFile

WebPageFile (propiedad 'FileInfo.Type' establecida en "WebPage") se deriva de la estructura 'StoredFile', y se utiliza para hacer referencia a páginas web (normales) cargadas en BSN por ID. Consulte el ejemplo a continuación (sus valores variarán para todos excepto "type"):

```json
{
   "type": "WebPage", // [string], structure data type visible only in JSON representation and used by de-serializer to determine expected property set of this object instance
   "name": "My First Web Page", // [string]
   "size": 20224, // [uint]
   "hash": "SHA1:1F224E31B9265062BE58E7D12FE3332E03536D48", // [string]
   "creationDate": "2017-02-19T20:10:11.287Z", // [DateTime]
   "lastModifiedDate": "2016-12-01T23:46:35.793Z", // [DateTime]
   "id": 47487, // [int]
   "path": "http://localhost:8081/Content/WebPages/9184f22b-51da-42e3-9900-c9c5bba03e6e.html" // [URI]
}
```

