Skip to content

Commit

Permalink
#7405: fix image example without guava (#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete authored and scottdraves committed May 26, 2018
1 parent 8c095ed commit 38cd423
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/groovy/Mime.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,13 @@
"metadata": {},
"outputs": [],
"source": [
"%classpath add mvn com.google.guava guava 23.0\n",
"import java.nio.file.Files;\n",
"import java.nio.file.Paths;\n",
"import java.nio.file.Path;\n",
"\n",
"import java.io.File;\n",
"import com.google.common.io.ByteStreams;\n",
"import com.google.common.io.Files;\n",
"Path path = Paths.get(\"../resources/img/widgetArch.png\");\n",
"byte[] bytes = Files.readAllBytes(path);\n",
"\n",
"def imgFile = new File(\"../resources/img/widgetArch.png\");\n",
"def bytes = Files.toByteArray(imgFile);\n",
"Image(bytes)"
]
},
Expand Down

0 comments on commit 38cd423

Please sign in to comment.