Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
Convert that base64 string back to a byte array. Ive tried out a few solutions, for example those in this question. If all youre looking for is base64 encoding try using commons codec. Converting Char array to String. 2.37.13. Convert the array to a base 64 sring. String s = Convert.ToBase64String(bytes) Displaying the Byte Array as Image. 3 Convert a byte array to base64 string. String s = bytes.toString(); In order to convert Byte array into String format correctly, we have to explicitly create a String object and assign the Byte array to it. So am thinking is there a way to convert that ByteArray/JsonArray to Base64 String that will allow us to make PDF in SFDC end. Sample Response Json we are getting.(The actual Array is too huge, i have removed some array values just to post it here). By creating new String Object and assign byte[] to it. Best way to do this via “UTF-8” decoding. toString() function on String object wont return actual string but only HashValue. ByteArray to String Conversion? Bill Ceglia. Ranch Hand. Информация взята v3.kz |
загрузка...
|