Question Ravi Akkiraju · Mar 14, 2021

Byte[] property type

Go to the original post@Ravi Akkiraju

One of the REST APIs we need to call takes one of request parameter as a byte array. I am trying to create a message class and couldnt figure out which is equivalent type that corresponds to Byte[]. I need to read from a jpg file and then convert it to byte[] before i invoke this webservice. Appreciate if anyone can point me in the right direction. I can use %Stream.FileBinary class to store the jpg file after loading from a file. trying to figure out how to convert that to byte[].

Thank you,

Ravi

Product version: IRIS 2019.1
$ZV: IRIS for UNIX (IBM AIX for System Power System-64) 2019.1 (Build 510_4_19056U) Fri Jun 28 2019 16:23:09 EDT

Comments

Ravi Akkiraju  Mar 17, 2021 to Eduard Lebedyuk

Thank you Eduard and Robert. 

Do i have to encode this to base64 prior to the WS call?

0
Eduard Lebedyuk  Mar 17, 2021 to Ravi Akkiraju

Depends on what WS expects, really.

0