docs: use encodeToString instead of encode in examples (#27297)
Fixes https://github.com/microsoft/playwright/issues/27273
This commit is contained in:
parent
9a5356f93b
commit
3ea03c9f4c
|
|
@ -75,7 +75,7 @@ console.log(buffer.toString('base64'));
|
|||
|
||||
```java
|
||||
byte[] buffer = page.screenshot();
|
||||
System.out.println(Base64.getEncoder().encode(buffer));
|
||||
System.out.println(Base64.getEncoder().encodeToString(buffer));
|
||||
```
|
||||
|
||||
```python async
|
||||
|
|
|
|||
Loading…
Reference in a new issue