开发者

Sending Images from C++ to Java | convert Stream to suitable Java Datatypes

I want to send openCV Images via UDP Socket to a Java Server (run with GWT). How can I convert th开发者_开发百科ose cvFormats to java-workable datatypes?


I once had to work on something similar to this, what I did was to serialize the raw binary data of the images and send it via UDP. At the other end I re-created an image with the server understandable type.

Don't forget that with GWT you could also send URLs of your images (say on the image source server). So you would have a dynamic URL only generated when you need to display it at the client side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜