System.ImportStreamWithUrlAccess(InStream, Text [, Integer]) Method
Version: Available or changed with runtime version 1.0.
Imports an object into a media container to be used in a temporary URL with a default expiration time.
Note
This method is supported only in Business Central on-premises.
Syntax
ID := System.ImportStreamWithUrlAccess(InStream: InStream, Filename: Text [, MinutesToExpire: Integer])
Note
This method can be invoked without specifying the data type name.
Parameters
InStream
Type: InStream
Input stream that contains the object to store as a media object.
Filename
Type: Text
File name to associate with the created media object.
[Optional] MinutesToExpire
Type: Integer
Number of minutes after which the object will expire.
Return Value
ID
Type: Guid
The ID of the media container, if the import is successful.
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for