PL/SQL (MOSC)

MOSC Banner

PDF attachment getting corrupted when sent using utl_smtp.

edited May 31, 2012 8:14AM in PL/SQL (MOSC) 7 commentsAnswered
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 :

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center