<br />
How should you complete the code segment? To answer, select the appropriate options in the
<br />
var<br />
<br />
<img src="https://examsqa.com/storage/question-images/microsoft-dynamics-365-business-central-developer-mb-820_page_6_Im3.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
begin<br />
TempBlob: Codeunit "Temp Blob";<br />
IncidentOutStream: OutStream;<br />
IncidentInStream: InStream;<br />
ImageFilter, FileName: Text;<br />
// Initialize the TempBlob and streams<br />
TempBlob.CreateOutStream(IncidentOutStream);<br />
Rec.Image.ExportStream(IncidentOutStream); // 'Rec' refers to the current Room Incident record<br />
TempBlob.CreateInStream(IncidentInStream);<br />
// Set the filters and filename for the image<br />
ImageFilter := 'Image Files (*.bmp,*.jpg,*.jpeg,*.gif)|*.bmp;*.jpg;*.jpeg;*.gif';<br />
FileName := 'Customer Picture';<br />
// Prompt the user to download the image<br />
if not DownloadFromStream(IncidentInStream, '', 'Download Incident Picture', '', ImageFilter,<br />
FileName) then<br />
Error('Unable to download the image.');<br />
end;