How to fetch attachments for an issue from JIRA API and display it in aspx webform

I am trying to fetch attachments for an issue from JIRA API and display it in aspx webform from “{domainname}/secure/attachment/{id}/{attachment_name}” endpoint through C# code.

The issue is the image is being fetched as a byte array and difficult to decode, so is there a possibility to fetch it in aspx using the C# code.