Your comments

The bug is in the local files chain. Following these instructions in the local files causes the binary file message, and an html page will not render the image correctly. Saving the image to iCloud or the Folders app from Photos works, but importing the file from within Textastic does not.