title: R h2o load a saved model from disk in MOJO or POJO format
body: <p>I'm catching up on <code>h2o</code>'s MOJO and POJO model format. I'm able to save a model in MOJO/POJO with </p>
  
  <pre><code>h2o.download_mojo(model, path = "/media/somewhere/tmp") # ok
  h2o.download_pojo(model, path = "/media/somewhere/tmp") # ok
  </code></pre>
  
  <p>which writes an object with name like <code>mymodel.zip</code> or <code>mymodel.java</code> to the directory.</p>
  
  <p>However, it's not clear to me how to read it back into the server in R. I tried,</p>
  
  <pre><code>saved_model2 &lt;- h2o.loadModel("/media/somewhere/tmp/mymodel.java") # not work
  saved_model3 &lt;- h2o.loadModel("/media/somewhere/tmp/mymodel.zip") # not work
  </code></pre>
  
  <p>but got error msg like this,</p>
  
  <pre><code>ERROR: Unexpected HTTP Status code: 400 Bad Request (url = http://localhost:54321/99/Models.bin/)
  
  java.lang.IllegalArgumentException
   [1] "java.lang.IllegalArgumentException: Missing magic number 0x1CED at stream start"  
  ....
  Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page,  : 
  
  ERROR MESSAGE:
  
  Missing magic number 0x1CED at stream start
  </code></pre>