logo
search
Others

How to Move an Image Between Business Central Tables Using AL

Khadija KhanKhadija Khan Sep 28, 2026 869 views

Question details

The user needs to move or transfer an image from one table to another within Microsoft Dynamics 365 Business Central using AL code.

How to Move an Image Between Business Central Tables Using AL
Product
Microsoft Dynamics 365 Business Central
Device & OS
not provided
Scenario
Developing or customizing extensions in AL where media or image fields need to be programmatically copied between tables.
Observed behavior
The task requires platform-specific AL development knowledge to correctly handle media or blob fields during data transfer without data loss.
Before you start

Ensure you have access to your AL development environment (such as Visual Studio Code) and the necessary permissions to read and write to the target Business Central tables.

Solution 1Recommended

Consult the Microsoft Dynamics Community Forum

Because transferring Media or MediaSet fields in AL requires specific stream handling, reaching out to AL experts on the official forum is the most reliable approach.

Microsoft Dynamics 365 Business Central handles images using Media or BLOB data types. Copying these fields directly via assignment operators often fails, requiring specific InStream and OutStream logic. The community forum provides up-to-date, tested code snippets for these exact scenarios.

1
Access the community forum

Navigate to the official Microsoft Dynamics Community Forum in your web browser.

2
Select the right category

Choose the 'Business Central' category under the Dynamics 365 section to ensure your question reaches the right experts.

3
Post your AL code requirements

Create a new thread detailing your specific requirements, mentioning the source and target table definitions, and asking for the appropriate InStream/OutStream AL code.

Consult the Microsoft Dynamics Community Forum
Search Before Posting: Search the forum for 'transfer media field AL' before posting, as similar questions regarding BLOB and Media field copying have often been answered previously.
Free Microsoft Office alternative

Document Your AL Development with WPS Office

While you need specific AL code to move images in Business Central, WPS Office is the perfect free, lightweight alternative to Microsoft Office for documenting your extensions, writing technical specifications, and managing project requirements.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite on your workstation.
  2. 2. Create technical documents: Open WPS Writer to draft your Business Central technical specifications and AL extension documentation.
  3. 3. Save and share: Save your documents in standard Microsoft Office formats to seamlessly share them with clients and development teams.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight design that won't slow down your development environment or PC.Familiar user interface allowing seamless migration and zero learning curve.Easily format and share technical documentation and AL code snippets with your team.
microsoft office alternative - wps office

Frequently Asked Questions

Can I directly assign an image field from one table to another in AL?

No, simply using an assignment operator (:=) for Media or BLOB fields often does not work as expected. You typically need to use Streams (InStream and OutStream) to properly transfer the binary data.

Do I need special permissions to move table data in Business Central?

Yes, your user account or the extension's execution context must have the appropriate Read permissions for the source table and Insert/Modify permissions for the target table.

Where can I find examples of AL stream copying?

You can find extensive examples in the Microsoft Learn documentation under the AL language reference, specifically in the InStream and OutStream data type guides.