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.

System Data Type
Get Started with AL
Developing Extensions