hi i am new to java,

i am making my first java web service in which i am going to transfer images from central database to local database on request (from local application)... consider transferring 1000+ images... what you people suggest how do i do it... either make byte array of all of them and send to local site for synchronization or what ?