How to transfer Image between netbeans platform modules?
-
09-10-2019 - |
문제
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.
해결책
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.
제휴하지 않습니다 StackOverflow