Main Site Documentation

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


#1

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

Thanks.


#2

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.


#3

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.


#4

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?