Both offer a great workout with similar results but there would be one main disadvantage for using a treadmill. When using a treadmill you are putting a large amount of pressure on the joints in your legs. By comparison, an exercise bike is free of pressure to the joints.
Other useful Treadmill vs Exercise bike resources: