It is not good approach at all, but you can do so.
Currently good described methods if you use google:
- OP return code
- P2SH
Both approaches are different and both are well covered.
But as I mentioned before, it is not good approach to store data into blockchain, at least not into blockchains desinged to be digital currency.
Maybe best approach that you could do is to use testnet/regtest for your tests.
You could also fork any blockchain project (of the coin you like) and change it's parameters, like ie. max amount of P2SH addresses. With that you would have your own chain, configured for data storage the way you want to have and you could experiment then, whatever it is, ie. storing to any available blockchain TXID of your chain or whatever you want. If your tests go well and you have something useable, I would suggest you to start separate project with that.
Other users did suggest already some projects that you should look into, as they have the approach to store data using blockchain technology.
Hope it helps.