How do I import a batch of barcodes into Adobe InDesign?
InDesign offers a Data Merge feature that can be used to import not just text, but images as well. In InDesign, you select a text file as part of the Data Merge setup process (called a data source file) with a column representing the relative path or name of the image file.
For more information on InDesign Data Merge, see:
https://helpx.adobe.com/indesign/using/data-merge.html
For specific information on adding image fields to your data source file, see:
https://helpx.adobe.com/indesign/using/data-merge.html#add_image_fields_in_the_data_source_file