Saltar al contenido principal
Versión: 20 R5 BETA

$expand

Expands an image stored in an Image attribute (e.g., Employee(1)/photo?$imageformat=best&$expand=photo)
or
Expands an BLOB attribute to save it.

Compatibilidad: por razones de compatibilidad, $expand puede utilizarse para expandir un atributo relacional (por ejemplo, Company(1)?$expand=staff o Employee/?$filter="firstName BEGIN a"&$expand=employer). It is however recommended to use $attributes for this feature.

Visualización de un atributo de imagen

Si desea visualizar un atributo de imagen en su totalidad, escriba lo siguiente:

GET /rest/Employee(1)/photo?$imageformat=best&$version=1&$expand=photo

For more information about the image formats, refer to $imageformat. For more information about the version parameter, refer to $version.

Guardar un atributo BLOB en el disco

Si quiere guardar un BLOB almacenado en su clase de datos, puedes escribir lo siguiente pasando también "true" a $binary:

GET /rest/Company(11)/blobAtt?$binary=true&$expand=blobAtt