src/Pure/General/bytes.scala
changeset 68108 2277fe496d78
parent 68106 a514e29db980
child 68149 9a4a6adb95b5
--- a/src/Pure/General/bytes.scala	Mon May 07 22:48:24 2018 +0200
+++ b/src/Pure/General/bytes.scala	Mon May 07 23:08:22 2018 +0200
@@ -56,6 +56,12 @@
     new Bytes(a, 0, n)
   }
 
+  def base64(s: String): Bytes =
+  {
+    val a = Base64.getDecoder.decode(s)
+    new Bytes(a, 0, a.length)
+  }
+
 
   /* read */