We are facing issue if the image path contains (secure) https protocol .
Just an FYI …same code works fine with http protocol.
Here is a part of code:-
doc.getMailMerge().execute(new String[] {"userImage"},
new Object[] {"https://a.imeetbeta.net/san/users/000/000/032/521/user_avatar.jpg"});
// Save the document in Word format.
// }
outputStream=new java.io.ByteArrayOutputStream();
doc.save(outputStream, com.aspose.words.SaveFormat.RTF);
end = System.currentTimeMillis();
The following error we are getting:-
Error …Cannot load image from field ‘userImage’. The field contains data in unsupported format. sun.security.validator.
ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: basic constraints check
failed: pathLenConstraint violated - this cert must be the last cert in the certification path
Please let me know if any thing we need to set to support https to avoid this error.
Need urgent help on this…please advice us…