Please don't label all constipation related disorders as piles. You need to visit a general surgeon to examine and diagnose your condition do that you receive the appropriate treatment.
Next Steps
Visit a general surgeon. In the mean time, please sit in a warm water tub (Sitz bath) for 10-15 minutes 2-3 times days, and start a fiber supplement such as isabgul.
Health Tips
Avoid constipation in future by consuming a high intake of fruits and vegetables, and water