Hi Graham,

I think you have to use exactly what you have, an array of bytes (i.e. byte[]). 
Here's a unit test in Jena for base64

https://github.com/apache/jena/blob/09994d2e2a7a9dd031f35e53ac79eb84f6927297/jena-core/src/test/java/org/apache/jena/graph/test/TestTypedLiterals.java#L967

Hope that helps
Bruno




________________________________
From: graham <[email protected]>
To: [email protected] 
Sent: Saturday, 18 August 2018 5:32 PM
Subject: Base64 binary data



Hi


I have some base64 binary data in an array of bytes.


How do I store that in a typed literal. I guess I need something like this


            model.add(subject, predicate, 

model.createTypedLiteral(bytes, new XSDbase64Binary("???")));


But what do I put in the ??? part?


thanks


graham

Reply via email to