Pull out a common callback after retrieving binary data.