To avoid absorption and scattering of X-rays on air, the whole camera length, including the sample chamber, is evacuated. Samples therefore need to be either vacuum-tolerant or put into a vacuum-tolerant container.
Aqueous samples are usually put into borosilicate capillaries of ~ 1.5 mm outer diameter and 0.01 mm wall thickness. One end of the capillaries is sealed with flame before filling the sample. The other end is closed either by hot glue, two-component epoxy glue or molten together by flame.
Solid samples of typically 5×5 mm2 cross-section and around 1 mm thickness are fixed on sample carrier plates, typically using some putty (e.g. Blu Tack)
If vacuum-sensitive, powders can also be filled into borosilicate capillaries. Otherwise, they can also be mounted on sample carrier plates, between two layers of self-adhesive tape (Scotch® Magic™ Tape has been found to be the best).
Various aspects of the sample environment can be controlled: