Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
5 subscribers
Views
1814 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Different Behavior Between The Same Code In Java Application & Smart Service
anthonyf1
over 7 years ago
Hi All,
I've created a smart service that takes as input a document - image - of type jpg, png, tiff and converts the image to another of the other previously listed formats.
My standalone Java application - that the smart service is based on - successfully converts any format to any other format.
My smart service produces the following outputs:
- jpg => png - Success
- png => jpg - Success
- tiff => png - Failure
- tiff => jpg Failure
To do this conversion I'm using the library JAI ImageIO Core -
github.com/.../jai-imageio-core.
I've figured out where in the smart service this fails on .tiff images but not other forms; I just have no idea why.
In both the standalone application and my smart service, the buffered image is created like follows:
BufferedImage bufferedImage = ImageIO.read(imageFile);
Where imageFile is a variable of type File. The onl...
OriginalPostID-261516
Discussion posts and replies are publicly visible
Parents
0
anthonyf1
over 7 years ago
matts, so it turns out I wasn't actually using the library. A newer version of the JDK (was using 1.8.0_74, now using 1.8.0_111) handles .tif images in javax.imageio.Read().
So, updating the server JDK now results in .tif images being converted successful and my plugin no longer relies an an external library.
Cheers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
anthonyf1
over 7 years ago
matts, so it turns out I wasn't actually using the library. A newer version of the JDK (was using 1.8.0_74, now using 1.8.0_111) handles .tif images in javax.imageio.Read().
So, updating the server JDK now results in .tif images being converted successful and my plugin no longer relies an an external library.
Cheers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data