getBytes() disrupts the base64 format: <groovy.lang.MissingMethodException: No signature of method: [B.decodeBase64() is applicable for argument types: () values: [] Possible solutions: encodeBase64(), encodeBase64(boolean)> org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: [B.decodeBase64() is applicable for argument types: () values: [] Possible solutions: encodeBase64(), encodeBase64(boolean)
Thanks On Sat, May 13, 2017 at 12:55 AM, Nelson, Erick <[email protected]> wrote: > can appuid be read as bytes ( byte[] ) ?? > if So , then try then decodeBase64(byte[]) method maybe? > > Erick Nelson > Senior Developer > HD Supply, FM > Cell 858-740-6523 <(858)%20740-6523> > Home 760-930-0461 <(760)%20930-0461> > > *CONFIDENTIALITY NOTICE: This message is for intended addressee(s) only > and may contain information that is confidential, proprietary or exempt > from disclosure, and subject to terms at: **http://www.hdsupply.com/email > <http://www.hdsupply.com/email>**.* > > From: RJ <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Friday, May 12, 2017 at 8:17 PM > To: "[email protected]" <[email protected]> > Subject: Re: Binary to Base64 Conversion > > Erick, > > Thanks for the response. > > The binary value from the webservice is > > APPUID=.�&Y���A�Tzg�<�^, > > The vendor tells me its binary on top of base64. If I try decodeBase64() > on this, it throws: bad character in base64 value > I guess I need to convert it first from binary to base64 format, and then > decodeBase64(). > > > I don't find binary to base64 decoding in the link. > > On Fri, May 12, 2017 at 10:07 PM, Nelson, Erick <[email protected] > > wrote: > >> Apache Commons codec >> >> https://commons.apache.org/proper/commons-codec/apidocs/org/ >> apache/commons/codec/binary/Base64.html >> <https://urldefense.proofpoint.com/v2/url?u=https-3A__commons.apache.org_proper_commons-2Dcodec_apidocs_org_apache_commons_codec_binary_Base64.html&d=DwMFaQ&c=G6gE9wZC434W5IaU4ofEKQ&r=dNrS-0eOrjqS9LI6Io5GnPqWzmfgaVqofJ4wYWYOmSA&m=WM_-amrwjfsg0z9JtYQbL97RHE8WsP3d-sfNGOteJNc&s=4uDxi14KhTuGGpfmbK4mWz3sHEAmh2aNFwXeT1bJIh4&e=> >> >> Erick Nelson >> Senior Developer >> HD Supply, FM >> Cell 858-740-6523 <(858)%20740-6523> >> Home 760-930-0461 <(760)%20930-0461> >> >> *CONFIDENTIALITY NOTICE: This message is for intended addressee(s) only >> and may contain information that is confidential, proprietary or exempt >> from disclosure, and subject to terms at: **http://www.hdsupply.com/email >> <http://www.hdsupply.com/email>**.* >> >> From: RJ <[email protected]> >> Reply-To: "[email protected]" <[email protected]> >> Date: Friday, May 12, 2017 at 7:05 PM >> To: "[email protected]" <[email protected]> >> Subject: Binary to Base64 Conversion >> >> I have to deal with a binary value of base64 ID in a groovy script. So, >> first I need to covert binary data to base64 format and then >> decodeBase64(). >> >> Any clues/thoughts ? Thanks!! >> > >
