From history it seems that you might have some extravasation of blood or injecting material causing this problem.
There is another possibility of having thrombophlebitis
Apply ice pack 2-3 times a day.
Go for one course of antibiotic and anti-inflammatory medicine course after consulting your doctor.
Ok and take care.