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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -