简体   繁体   English

如何在netbeans平台模块之间传输映像?

[英]How to transfer Image between netbeans platform modules?

What is the best way to transfer images between netbeans platform modules? 在netbeans平台模块之间传输映像的最佳方法是什么? I thought about BufferedImage , or InputStream or as byte[] ?? 我想到了BufferedImageInputStream或作为byte[]
Now is the page on the disk and I use the File object to get the image, but i feel that this is not the right way. 现在是磁盘上的页面,我使用File对象获取图像,但是我觉得这不是正确的方法。 In the future, there is a possibility that the image will be transfered to some server. 将来,可能会将图像传输到某些服务器。 The image will be used to create the ocr in another module or on the server. 该映像将用于在另一个模块或服务器上创建ocr。

The standard for loosely couple communication in the NetBeans platform is the lookup . 查找是NetBeans平台中松散耦合通信的标准。 An option would be to pass around FileObjects referring to the images. 一种选择是传递引用图像的FileObjects

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM