I'll try to help you with this project. What exactly do you mean by sending a file to PC? And, why do you think that it requires Java? I mean, you could use an example similar to the one found in http://www.cplusplus.com/forum/general/27659/ (if the file does not reach the 1500 B)
Or, are you interested in streaming the files to an HTML? If so, you would have not only use OpenCV but a different library like FFMpeg.
Please provide us a more detailed inside of your project so we can provide you more accurate suggestions.
We’ll be waiting for your response.
recently,I tried to use Edison to make an object tracking .Considering Edison doesn't hava a gui module ,therefore,to make it easier ,I used Opticalflow provided by opencv,and saved every frame as a png file.But I still want to check the results(png files) in real time .Ｉｔｈｉｎｋ ｉｆ Ｉ ｃａｎ ｓｅｎｄ ｔｈｉｓ ｒｅｓｕｌｔｓ ａｓ ａ ｓｅｔ ｏｆ ｐｎｇｓ ｔｏ ＰＣ ｔｈｒｏｕｇｈ ｓｏｃｋｅｔ．
I understand, in that case, I'd suggest you to read the following document:
It is a very complete guide on how to use sockets on Linux using C++. I believe it will be very helpful for you.
Let me know if it is of help.