|-
| '''Summary'''
|Returns a binary database resource addressed by the [[#Database Nodes|database node]] {{Code|$db}} and {{Code|$path}} as streamable {{Code|xs:base64Binary}}.
|-
| '''Errors'''
|
* {{Code|declare option output:method 'raw';<br/>db:retrieve("DB", "music/01.mp3")}} returns the specified audio file as raw data.
* <code><nowiki>data(db:retrieve("DB", "music/01.mp3"))</nowiki></code> returns a materialized representation of the streamable result.
|}