Microsoft Dynamics 365 Business Central Developer — Question 6
A company has a Business Central online environment.
You are exporting a file from a client by using the DownloadFromStream method.
You need to create an InStream data type to send the data.
Which solution should you use?
Answer options
- A. Use CreateInStream method from codeunit "Temp Blob".
- B. Use CreateInStream method for BLOB field of "TempBlob" table.
- C. Use CreateInStream method for File type variable.
Correct answer: A
Explanation
The correct answer is A because the CreateInStream method from the codeunit 'Temp Blob' is specifically designed for this purpose. Options B and C are incorrect as they do not utilize the proper method or object for creating an InStream in this context.