Saving Images in Jira plugin

I am new to the Jira Plugin development. I have written a plugin where I am saving the plain text data into the Entity properties of the Issue entity.

However, the new requirement is to allow the user to upload one or more images. This information can’t go into the Entity Property as it has a limit of 32kb. So I am stuck here.

I was reading somewhere that you can store this data in the database. I am not sure if this is going to be the Jira database or my own database somewhere in the cloud.

I also had another option in my mind to persist the image on the Amazon S3 and save the reference in the JSON object stored in the Entity Property. I am not sure if this the right/best option or not

Can someone help me to figure out what is the right way to achieve this, please?