exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 3 question 29 discussion

Actual exam question from Microsoft's 70-480
Question #: 29
Topic #: 3
[All 70-480 Questions]

You develop a webpage that allows a user to download a JPEG image and convert it to a PNG file.
You need to implement the code to download the contents of the JPEG image with no additional decoding.
Which JavaScript function should you use?

  • A. readAsBinaryString()
  • B. readAsArrayBuffer()
  • C. readAsDataURL()
  • D. readAsText()
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The readAsArrayBuffer method is used to read a File, Blob, MSStream into memory as an ArrayBuffer object.
Reference: FileReader.readAsArrayBuffer

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SxyPenguin
4 years, 9 months ago
The explanation does not make clear why this is the answer
upvoted 1 times
Raly
4 years, 8 months ago
the image is a blob
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...