android - How to send the byte[] data of onPreviewFrame method over socket -


i've create simple camera application, in onpreviewframe method, data byte array, byte of image preview , how can send on socket phone phone?

camera.setpreviewcallback(new previewcallback() {       public void onpreviewframe(byte[] data, camera camera) {         //send data client         outputstream.write(data, 0, data.length);                          }  } 

is send data array correct? if yes, how client can receive data @ show it's @ image?

thank you.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -