# Inventory images import

System allows for a bulk images import.

This can only be done by a system administrator on the server that you are hosted.

Prepare a folder with all the images.

Prepare the Excel file with links to the images.

<table border="1" cellpadding="0" cellspacing="0" id="bkmrk-stockcode-image-desc" style="border-collapse: collapse; width: 846px; border-width: 0px; border-spacing: 0px; border-color: #000000;" width="726"><colgroup><col style="width: 83.8px;" width="72"></col> <col style="width: 132.8px;" width="121"></col> <col style="width: 203.8px;" width="192"></col> <col style="width: 162.8px;" width="150"></col> <col style="width: 202.8px;" width="191"></col> </colgroup><tbody><tr style="height: 15.0pt;"><td class="xl64" height="20" style="height: 15pt; width: 54pt; border-color: rgb(0, 0, 0);" width="72">StockCode</td><td class="xl64" style="width: 91pt; border-color: rgb(0, 0, 0);" width="121">Image Description</td><td class="xl64" style="width: 144pt; border-color: rgb(0, 0, 0);" width="192">Image file</td><td class="xl64" style="width: 113pt; border-color: rgb(0, 0, 0);" width="150">Thumbnail Description</td><td class="xl64" style="width: 143pt; border-color: rgb(0, 0, 0);" width="191">Thumbnailfile</td></tr><tr style="height: 15.0pt;"><td class="xl63" height="20" style="height: 15pt; border-color: rgb(0, 0, 0);">1051</td><td style="border-color: rgb(0, 0, 0);">1051\_M</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\A\\1051.jpg</td><td style="border-color: rgb(0, 0, 0);">1051\_T</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\B\\1051.jpg</td></tr><tr style="height: 15.0pt;"><td class="xl63" height="20" style="height: 15pt; border-color: rgb(0, 0, 0);">1151</td><td style="border-color: rgb(0, 0, 0);">1151\_M</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\A\\1151.jpg</td><td style="border-color: rgb(0, 0, 0);">1151\_T</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\B\\1151.jpg</td></tr><tr style="height: 15.0pt;"><td class="xl63" height="20" style="height: 15pt; border-color: rgb(0, 0, 0);">1271</td><td style="border-color: rgb(0, 0, 0);">1271\_M</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\A\\1271.jpg</td><td style="border-color: rgb(0, 0, 0);">1271\_T</td><td style="border-color: rgb(0, 0, 0);">c:\\images\\beauty\\B\\1271.jpg</td></tr></tbody></table>

---

Server code

1. Copy data to server
2. Go to the Terminal
3. Change to Namespace

Run this code

<table border="1" id="bkmrk-do-%23%23class%28inventory" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.8765%;"></col></colgroup><tbody><tr><td>do ##class(InventoryManagement.Attachments).Import("c:\\images\\Youngblood\\import.txt")</td></tr></tbody></table>