Hello
I receive a pdf file through my eMail listener.
When I save it to a file I get an empty pdf document
GetBodyPartContent
streamToString
writeToFile
When I do a base 64 decoding a get an invalid pdf format error
GetBodyPartContent
streamToString
base64Decode
byteToFile
Other order of flows give errors about wrong variable types.
I’ve been looking in vain through the forums for an answer.
Can anyone help me please?
Stef
reamon
(reamon)
March 27, 2007, 9:25pm
2
Stop calling streamToString. PDF data is not a string. Write the stream or bytes to file. Do not try to convert it to a string.
A working solution:
pub.flow:getTransportInfo
pub.io :streamToBytes
bytesToFile
with thank to my american Fisher colleague and reamon
stef
learningWM
(learningWM *)
October 26, 2010, 2:49am
4
Stef,
Can you point out where byteToFile is located? I’m trying to convert the attachment from getBodyPartContent to a file so that I can map it to the attachment in the smtp.
Thanks,
Jin