Pessoal, recebo de um sistema externo uma string cujo conteúdo são os bytes que representam um arquivo.
Tentei recriar novamente o arquivo fazendo isso:
String bytes = "x?3P0TÐ5T0P0µ4?ɹ\\?\\N!\\Æf\n%âãÏÓ\n";
OutputStream arquivo = new FileOutputStream("arquivo.dat");
arquivo .write(bytes.getBytes());
arquivo .flush();
arquivo .close();
Obviamente não funcionou.
Existe alguma maneira de converter o conteúdo (e não a string em si) para bytes?