getAttachment

open override fun getAttachment(attachmentId: String): ByteArray

Get attachment data for a remote settings record

Attachments are large binary blobs used for data that doesn't fit in a normal record. They are handled differently than other record data:

  • Attachments are not downloaded in RemoteSettingsService::sync

  • This method will make network requests if the attachment is not cached

  • This method will throw if there is a network or other error when fetching the attachment data.