How to interpret data returned when making banner image API call?

Hi there,

 

My team is currently creating a custom student dashboard widget for the main homepage.

 

Pulling the various course information is working, but when trying to make the banner image call, we've hit a snag.

 

This is the API call:

 

GET /d2l/api/lp/(version)/courses/(orgUnitId)/image

 

And although there isn't any network/server errors, this is the data returned:

 

 

image-error

The documentation brings out that "a file stream containing the current course offering’s image" is returned, but my question is how can I interpret this into an HTML image tag to insert into the the rest of the HTML content we're coding?

 

Thanks in advance!

 

Gavin McGruddy