+.. index:: single: command; albumart
+
+**Fetch album art for the given track**
+
+The logic is similar with `readpicture` command.
+
+.. sourcecode:: python
+
+ client = mpdaio.MPDClient()
+ # Looking for cover art in 'Tool/2001-Lateralus/'
+ track = 'Tool/2001-Lateralus/09-Tool - Lateralus.flac'
+ aart = await cli.albumart(track, 0)
+ received = int(aart.get('binary'))
+ size = int(aart.get('size'))
+ with open('/tmp/cover', 'wb') as cover:
+ # aart = {'size': 42, 'binary': 2051, data: bytes(...)}
+ cover.write(aart.get('data'))
+ while received < size:
+ aart = await cli.albumart(track, received)
+ cover.write(aart.get('data'))
+ received += int(aart.get('binary'))
+ if received != size:
+ print('something went wrong')
+ await cli.close()
+
+Cf. `MPD protocol documentation`_ for more binary responses.
+