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
Post a Comment