![]() ![]() Replace the C:\ any_file_name.doc value with the file name that you want to use and substitute variable1 with the name of the variable that you have created (if you have amended the name from the default value). 'Encode the data from the input file to Base64Encodedīase64Encoded = encodeBase64(inByteArray) The final step is to add a Run VB Script step to the task and add the following script: inFile = "C:\any_file_name.doc".The example below displays use of a task variable using the default name “variable1” – this has been set as a Parameter type variable with Task as the scope, although it can also be set as Task Instance. Set CObj = CreateObject("Microsoft.XMLDOM")Ī task or global Variable is also required to accommodate the encoded output so that we can attach this to a Fixed/Dynamic Function within the Web Service Connector Tool step. The syntax for this function is as follows: Dim Cobj, CElem Create a second task level Function called encodeBase64 this needs a parameter called bytes to be added.Set inStream=CreateObject("ADODB.Stream") Insert the syntax to the Script tab as displayed below: Dim inStream Within the task create a task level Function called readBytes and add a parameter to the function called file.Note: This function outputs a Base64 encoded string and not a Base64 byte array. Contact Us Get in touch and start your Codeless journey.About Us The story behind Codeless Platforms.Blog Keep up to date with the latest industry trends and general business software advice.News All the latest news and press releases from Codeless Platforms.Log a Support Ticket Log a support ticket and speak to our five star customer service team.Knowledge Base Access troubleshooting articles, how-tos, FAQ’s, tips and best practice guides.How-to Videos Download the training manuals and follow step-by-step videos to help you get started.White Paper Library Download and read technical documents from our white paper library.eBooks Download eBooks on a range of industry related topics from our digital library.Return on Investment Calculator Calculating the savings you could achieve through automation.Case Studies Read some customer success stories and discover how we helped them improve their business.Partner Area Access technical resources to help thrive in your marketplace.Partner Focuses Discover how our platforms and solutions benefit existing partners.Partner Programmes Learn more about our channel partner programmes and the benefits a partnership can bring.Partner Webinar Join us for an upcoming live webinar for partners. ![]() Partner Training Codeless Platforms’ certified partner training schedule.Productivity Improve productivity by automating repetitive, day-to-day manual processes ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |