web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Read memory stream and use it to import as product image

(0) ShareShare
ReportReport
Posted on by 2,114

Hi Techies,

We are trying to import a product image, where all image files are loaded in one zip file. A class extracts the file, reads image file one by one which we get in memory stream, image file name is same as product id in AX.

We are using binData class methods to load this. here we can't use binData.LoadFile() method directly because the file is loading first to blob and our code reads from there which will not work it seems.

We can copy the image file from blob in code and use it, but question is how can we use these stream inputs to load the images.

Any inputs are appreciated!

Thanks,

Sangram

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If you don't want to use the standard entity for some reason, you still can borrow the logic from there. Look at EcoResDocumentAttachmentEntity.insertAttachmentWithFile().

  • Sangram Shinde Profile Picture
    2,114 on at

    Thank you Martin!

    We didn't check the entity logic yet. We converted memory stream in container and used it as BlobData variable, which worked in place of binData.getData()

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans