ShouldersChestPantsShoes ~ Yes, there is a way... Each contact has the possibility to add multiple URLs. You could place your image/text file in iCloud Drive and put its associated URL in the appropriate contact. Then when you tap on that URL in Contacts app, the file can be viewed.
To place an image from Photos into iCloud Drive, tap the Share icon and choose Save to Files.
To get the URL of that image on iCloud Drive, this custom shortcut can be run:
iCloud URL for a Contact
...Tap that link to add it your Shortcuts Library.
- When you run that shortcut it will open Files app where you can browse to the required image.
- Once selected, its URL will be copied to the clipboard.
- Tap Done
- Contacts app will then be opened ready for editing.
- Tap "add url".
- Paste in the URL.
- Then when out of Contacts' Edit mode, tap the URL.
- In the resulting page, tap the "Download to your device" button (it won't download.)
- Choose View.
Some example screenshots, beginning with running the shortcut to get the image URL:

Shortcuts User Guide for iPhone and iPad
õ¿õ¬