How to convert the picture data to bytes array using camera module?

Hi, how can I convert the picture data to bytes array using camera module?
I want send the picture using UDP socket.

Thanks.

Is the picture currently in a file? I would think you can use a streamreader to read it byte by byte and put it into an array or just send it directly.

not in the file.
I use camera module to take a static picture, or STREAM IMAGES.
I want to know how to convert the Bimap picture to Bytes Array.

Thanks.

The raw picture.PictureData has 330454 bytes.
But the Max UDP is 65535 bytes ,
So do I need to separate the Picture data then send it part by part?
Any good advice?