Is it permissible for a person to take injection while fasting considering that injection is medication that gets into the body?

Question

It is permissible for one to take injection while fasting. The medicine that is introduced into the body by an injection is generally introduced through the veins and the effect does not directly reach the stomach and the brain. However, if the injection is injected directly into the brain or stomach the fast will be void.