$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
oEmployee/?$filter="firstName BEGIN a"&$expand=employer
). It is however recommended to use$attributes
for this feature.
Vendo um atributo de imagem
Se quiser ver um atributo de imagem integralmente, escreva o abaixo:
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
.
Salvar um atributo BLOB ao disco
Se quiser salvar um BLOB armazenado em sua classe de dados pode escrever o seguinte passando também "true" a $binary:
GET /rest/Company(11)/blobAtt?$binary=true&$expand=blobAtt