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 :
Microsoft Dynamics NAV (Archived)

How to use the MemoryStream in AL in NAV 2018

(0) ShareShare
ReportReport
Posted on by 3,967

Hi,

I've created a control signature add-in in NAV 2018 which uses javascript. I've created a canvas and I'm able to draw on the canvas. But I'm facing issues as to how shall I save the data to table using AL.
Earlier in NAV 2017 we've used a .NET variable to get the data through MemoryStream. Thus, I'm not sure how to do the same in AL. Kindly guide.
Thanks!

*This post is locked for comments

I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Actually you don’t have System.IO in AL. The reason? Security in the cloud.

  • Andrey Baludin Profile Picture
    3,941 on at

    Maybe, media type field will help you?

    Like this:

    Record.MediaField.IMPORTSTREAM(InStream, Description[, MimeType])

    docs.microsoft.com/.../importstream-function--media-

  • Verified answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi,

    I've created a DataUri for the canvas and then pass the DataUri as text. I want to know if we can store the DataUri in NAV

  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You can store it as a BLOB and reconvert to DataUrl when needed:

    [View:https://stackoverflow.com/questions/23150333/html5-javascript-dataurl-to-blob-blob-to-dataurl]

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans