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:
fs.readFileSync(‘yourimageFile.jpg’).toString(‘base64’);
And then when the image is converted to the string, store it on the Blockchain like you would usually store any other string.
Hope this helps!