sending files using byte array

I am playing around with sending files back and forth over the internet through a client/server connection. I am taking a video file, converting it to a byte[] and then sending the byte[] to the server side which then writes the file to the server and stores it's location in a derby database. Then to view the file from the client i send a request to the server to then read that file into a byte[] and send the file back to the client. which then takes the byte[] and writes a file and then plays the file. This works, but slowly. I know it isn't an effecient process, but for my level of programming it works and is a learning experience.

My question -- say i have a byte array of 12,000, can i break the byte[] down by increments of 500, and play that. if possible it would cut down on the time it took to start playing the video. to view the videos, i am currently opening them through java in windows media player.

hopefully you can understand my idea and question. thanks

[1000 byte] By [developprogramsa] at [2007-11-27 0:12:44]
# 1
Can't you just play the item from an InputStream?
ejpa at 2007-7-11 21:55:33 > top of Java-index,Java Essentials,New To Java...