Convert String to application/octet-stream Java Convert String to application/octet-stream Java json json

Convert String to application/octet-stream Java


Just got the String using a JSON parser

byte[] decoded = Base64.getDecoder().decode(data);InputStream stream = new ByteArrayInputStream(decoded);