pub.client:smtp, How can I create an attachment from data only - not from a local fil

How can I create an attachment from data only - not from a local file?

Im trying to use the pub.client:smtp service. Its used by another service that wrapped by a web service (WSD provider).

The attachment is not a local file. The attachment data comes into the flow service as a base64 encoded string.

I can take the string, decode it and set it on the attachment.content. This works file for ASCII, but binary is giving me problems. The email is delivered with an attachment, but the attachment is corrupt.

Yes, I am setting the mimeType and encoding (tried both base40 and 7bit), no difference.

What type does the attachment.content need to be? The examples that I’ve seen discussed here deal with files that exist locally.

Any suggestions welcome.

Thanks.

Never mind, found it:
http://wmusers.com/forum/showthread.php?p=63013&highlight=base64+attachment#post63013

I just needed to use pub.string.base64Decode (was using PSUtilities.string:decode64String)

Thanks!