But when i try to run this piece of code I got the following exception:
Exception in thread "main" java.lang.NullPointerException
at com.nedbank.image.conversion.App.convertJp2(App.java:78)
at com.nedbank.image.conversion.App.main(App.java:35)
I am using ubuntu 18.04 docker image to test this code and i can confirm that image I am passing as input parameter is in correct format(attached)
[Uploading Sample0.zip…]()
Could you guide me what I am missing to use this library?
Hi,
My requirement is to convert jp2 format image to jpeg format image. For that purpose I have following code:
public static void convertJp2(String inputPath,String outputPath) throws IOException { ImageInputStream iis; InputStream is = new FileInputStream(inputPath);
}
But when i try to run this piece of code I got the following exception:
Exception in thread "main" java.lang.NullPointerException at com.nedbank.image.conversion.App.convertJp2(App.java:78) at com.nedbank.image.conversion.App.main(App.java:35)
I am using ubuntu 18.04 docker image to test this code and i can confirm that image I am passing as input parameter is in correct format(attached) [Uploading Sample0.zip…]()
Could you guide me what I am missing to use this library?