What is the best way to transfer images between netbeans platform modules? I thought about BufferedImage
, or InputStream
or as 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. 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.
在netbeans平台模块之间传输图像的最佳方法是什么?我想过BufferedImage,或者InputStream或者是byte [] ??现在是磁盘上的页面,我使用File对象来获取图像,但我觉得这不是正确的方法。将来,图像可能会转移到某个服务器。该图像将用于在另一个模块或服务器上创建ocr。
1 个解决方案
#1
0
The standard for loosely couple communication in the NetBeans platform is the lookup. An option would be to pass around FileObjects referring to the images.
NetBeans平台中松散耦合通信的标准是查找。一个选项是传递引用图像的FileObjects。
#1
0
The standard for loosely couple communication in the NetBeans platform is the lookup. An option would be to pass around FileObjects referring to the images.
NetBeans平台中松散耦合通信的标准是查找。一个选项是传递引用图像的FileObjects。