webMethods

webMethods

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.

 View Only
  • 1.  Convert base64 to pdf?

    Posted Fri January 06, 2023 05:56 AM

    What product/components do you use and which version/fix level are you on?

           Webmethod io integration-10.15
    

    What are you trying to achieve? Please describe it in detail.

    Actually i have base64 data and i want to convert base64 to pdf, is it possibl to convert to pdf?.


    #webMethods-cloud
    #webMethods-io-Integration
    #webMethods


  • 2.  RE: Convert base64 to pdf?

    Posted Fri January 06, 2023 02:24 PM

    Base64 is a binary-to-text encoding scheme. If the original binary bits were a PDF, then decoding the Base64 string will provide the raw bytes of the PDF.


    #webMethods-cloud
    #webMethods-io-Integration
    #webMethods


  • 3.  RE: Convert base64 to pdf?

    Posted Mon January 09, 2023 12:16 PM

    How can i generate pdf(image) from base64?.


    #webMethods-cloud
    #webMethods
    #webMethods-io-Integration


  • 4.  RE: Convert base64 to pdf?

    Posted Mon January 09, 2023 01:26 PM

    Search the wM docs for base64. You may find a component that will decode the base64 into the raw bytes.


    #webMethods
    #webMethods-cloud
    #webMethods-io-Integration


  • 5.  RE: Convert base64 to pdf?

    Posted Tue January 10, 2023 01:49 AM

    Use pub.string:base64Decode → pub.file:bytesToFile this might do.


    #webMethods-cloud
    #webMethods-io-Integration
    #webMethods


  • 6.  RE: Convert base64 to pdf?

    Posted Tue January 10, 2023 09:19 AM

    I was attempting to “teach a person to fish” rather than “give a person a fish” :slight_smile:


    #webMethods-io-Integration
    #webMethods-cloud
    #webMethods


  • 7.  RE: Convert base64 to pdf?

    Posted Tue January 10, 2023 09:59 PM

    Love this approach.


    #webMethods-io-Integration
    #webMethods-cloud
    #webMethods


  • 8.  RE: Convert base64 to pdf?

    Posted Thu January 12, 2023 02:46 AM

    +1 for this post, In this context, essential to keep in mind the difference between a text format such as pdf vs a text encoding scheme such as Base64.

    -NP


    #webMethods-io-Integration
    #webMethods-cloud
    #webMethods