I think you are suffering from peptic ulcer
as you mentioned vomiting and blood.You should go for an endoscopy , before that you can take antacids like pentoperazole and domperidone
combinations.Take tablet gasex two tablets thrice daily.Drink cold milk , avoid fried and spicy food, drink lot of water , constipation
should not be there so take lot of fibre and go for morning walks and exercise.Ultrasound is must to rule out gall stones
.You have not mentioned your age ?