Download photo from invoices

Hi, I created an invoice with articles and associated with each article, in the articles table, there is a photo. Print the invoice with the photos and I need to download and compress the photos related to the invoice made. It’s possible ? How should I solve? Thank you