Synchronizing serial data transfer is critical, and it is difficult with multi byte binary data. As previously suggest by others, you can send the ascii bytes for "<1234>" and synchronize with start and end markers.
A good tutorial for serial data transfer is Robin2's Serial Input Basics. which presents methods for synchronizing transmissions.