You can not directly add an image to the Hyperledger. To add an image to the Hyperledger Blockchain, you need to first convert the image into a Base64 string.
You can do the conversion using the following code:
And then when the image is converted to the string, store it on the Blockchain like you would usually store any other string.
You can refer to the following links to know more: