我有我的套接字通信啓動和運行。閱讀二進制圖像
我現在需要用以下幫助:
我們正在經歷插座的圖像發送到設備。
transmit.framebuffer.rgb_byte will transmit in binary format the following information:
[4 bytes] => image width
[4 bytes] => image height
[< image width> * <image height> * 3 bytes] => RGB in unsigned char format [0, 255]
[3 bytes] "OK\n"
我將如何去獲得這個工作?.. 現在我只是純文本等工作, 所以這整個二進制編碼是新的我。
有什麼問題嗎?使用(Buffered)InputStream /(Buffered)OutputStream,並寫入字節。 – Kaj 2011-05-10 19:10:40