Announcements
hi,
i have custom ax service , which must receive byte [ ] from c# and i must store image in ax database . i know , that i must store image in container with EDT - bitmap . but i don't know how to transform c# System.byte[] to ax container .
*This post is locked for comments
yes , thank you martin for your help.
You can simply pass a byte array to MemoryStream constructor. Alternatively you can use its Write() method.
As you can see, these are .NET objects and have nothing to do with AX, therefore you usually have to look into .NET documentation and .NET forum for such information.
yes , I am trying to use that class , but I didn't find a method , that puts byte array to memory stream object.
You can use Binary class.
constructFromMemoryStream() creates an instance from a stream and getContainer() gives you a container. You just have to put your byte array to memory stream.
André Arnaud de Cal...
293,727
Super User 2025 Season 1
Martin Dráb
232,716
Most Valuable Professional
nmaenpaa
101,158
Moderator