IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  PDF Attachment

    Posted 02/23/06 02:18 PM

    I’m receiving a PDF attachment as a base64 encoded string to a service. I need to save this to the filesystem. I’m using the following services:

    base64Decode → bytesToString – writeToFile

    The file is saved but the pdf document is empty when I open it. I’m able to email the document to myself by using:

    base64Decode → smtp and setting the content of the attachment equal to the result of the base64Decode

    I know the pdf document is valid because I’m able to read it from my email attachment.

    Is there something I’m missing to get this file to save correctly to the filesystem?

    Thanks,

    Kevin


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: PDF Attachment

    Posted 02/23/06 04:22 PM

    Skip the bytesToString. That’s what’s messing it up since a pdf byte stream is not a String. Just write the bytes to the file.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: PDF Attachment

    Posted 03/02/06 12:08 AM

    Kevin, did the removal of the bytesToString call do the trick?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods