Skip to content

Commit 1830f27

Browse files
committed
--wip-- [skip ci]
1 parent 496d3f6 commit 1830f27

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/02-tutorials/01-intro/07-storage-set-up.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,15 @@ userMappingBuilder.addSelectorType("NAME", User::fullName)
228228

229229
##### Mapping Binary Data
230230

231-
...
231+
The Java Storage Connector library also provides all the methods you need to map binary data in order to handle them in the more efficient way.
232+
233+
Here, the demonstration app also capture a proof of identity document (pdf, image, etc.) for every user, associating it with the custom `OTHER-DATA.PROOF` selector.
234+
The `BinaryData` class will help you to represent such data easily in order to map it to a selector using the `addSelectorTypeBinary()` method.
235+
236+
In this example, as the `proof` entry is stored as a `byte[]`, we use the `fromArray` method:
232237

233238
```java
234239
userMappingBuilder.addSelectorTypeBinary("OTHER-DATA.PROOF", u -> BinaryData.fromArray(u.proof()))
235240
```
236241

242+

0 commit comments

Comments
 (0)