Fix showing binary data for Invoice PDF's and Receipts.
Pull out a common callback after retrieving binary data.