PDF attachment getting corrupted when sent using utl_smtp.
Hello All,
I am using the below code to send PDF attachment through utl_smtp, I am able to send it but when I try to open the attachment
I am getting an error message "Adobe couldn't open test.pdf either its not supported or file has been damaged"
Tried many combinations of MIME settings (ie) 7bit, 8bit, base64 encoding and writing in raw format, normal write data etc
but not able to crack the issue.
Normal text or excel attachment seems to be fine, issue is only for pdf files. Am I missing something in the code here?
Code unit :
0