Multiple choice technology web technology

How can the contents of a file be converted to a stream object?

  1. using ToArray method

  2. using FileContent property

  3. using ToString method

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The FileContent property of a file upload control directly returns the file contents as a byte array/stream object. ToArray() would require additional steps, ToString() would convert to string representation, and the FileContent property is the most direct method provided.