0

I am trying a java InputStream into a readable String. But I was not able to find a great documentation about its encoding.

Using this code:

new String(Base64.getDecoder().decode(encoded))

I get this render:

%PDF-1.3 %��������� 4 0 obj << /Length 5 0 R /Filter /FlateDecode >> stream x�RMo�0 ... 0003418353 00000 n 0003418406 00000 n 0003418433 00000 n trailer << /Size 721 /Root 621 0 R /Info 1 0 R /ID [ <12ed654a93ed649c4a0cfcc44cf4a992> <12ed654a93ed649c4a0cfcc44cf4a992> ] >> startxref 3418586 %%EOF

Any brilliant idea, please?

Naman
  • 23,555
  • 22
  • 173
  • 290
Oppa pi
  • 11
  • 3

0 Answers0