You haven't really said what the problem is. Are you not getting any attachment at all? Or is the attachment not the format you want. Are you sure your client side code is creating the PDF correctly? Have you tried downloading it to make sure? On the server side you are accessing the body as a string. Would the PDF content actually be a string? Isn't more likely that its a byte array (binary data)?
↧