Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can I do image format detection based on message content in SOA Suite 12c (or Java)

Jesper!Nov 5 2020 — edited Nov 5 2020

Hi all,
I have a SOA suite 12c composite application featuring a BPEL (BPEL 2.0) that receives an xml payload containing an example element <picture>boaeBuo768vivuiViug9</picture> (but than much much longer). The format in this picture could be anything from JPEG2000, JPEG, to BMP or PNG. Now the target application can not function with JPEG2000, so what I want to do is reroute the image if it turns out to be a JPEG2000 image.
My Question is: How can I detect the image type based on the message content using the means available in SOA Suite 12c (BPEL). Is there something I can do with XSLT, or perhaps a Java embedding?
I can use all the help possible, no wrong answers! :).
Thanks!
Jesper

Comments

Post Details

Added on Nov 5 2020
1 comment
227 views