You can export a byte array from JProfiler Heap Walker
using the following script.
File tempFile = File.createTempFile("jprofiler-export-", "");
try (OutputStream out = new FileOutputStream(tempFile)) {
out.write(byteArray);
out.flush();
}
return tempFile.getPath();
File tempFile = File.createTempFile("jprofiler-export-", "");
try (FileWriter writer = new FileWriter(tempFile)) {
writer.write(charArray);
writer.flush();
}
return tempFile.getPath();
- Open the
Heap Walker
, selectReferences
and open the context menu of the byte array. - Select
Run Script On Selected Instance
to edit and execute the script