There are paint guns designed for this with a wand and a nozzle on them.
Then you can try to blow out and sand blast out inside the frame rails as much as possible.
I assume you have the car disassembled and doing a resto or similar?
I sand blasted inside my rails from every hole possible for hours. Then used air blower for hours getting all the sand out, then used the eastwood insideframe cans.
My friend who is a pro told me about the paint gun that sprays whatever you want out a tube.
http://oemproamtools.com/undercoat.htm (Ontario company I believe)
Here are some units that will blast out paint or product. Coating in frame tubes is a messy process.
You could fill them with epoxy and soak inside your frame rails.
As you spray, running the tube all around in the frame, the epoxy or coating flys out thru all the open holes and drains all over the floor too.
I did inside every rail, behind all reenforcments and hidden chambers after blasting the car but before epoxy.
I drilled a couple holes in my rocker at the bottom and used a screwdriver to open up the factory chamber drains (pinch openings) and did the blasting, air blowing and internal coating in the rocker chambers too.
I followed up the internal cavities with soaking and blasting the seams with epoxy from a cheap gravity gun at high pressure to force epoxy into the seams.
Then I followed with seam sealer after the epoxy on seams had hardened for a couple days, then epoxy all, then paint. The epoxy I used is direct metal etching and has a window of 7 days. Versatile and very durable.
See below, hope this helps in some way: