Skip to content

Commit

Permalink
#7405: fix image example without guava
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete committed May 25, 2018
1 parent a24a466 commit 0f6f880
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 0f6f880

Please sign in to comment.