title: Assets image to Internal storage runtime
body: <p>I have converted docx to html and able to display it in webview with images. However, when I try saving the html extracted from webview to internal storage the images are not visible and are rather leaving a blank space in the saved html file. </p>
  
  <p>The code for doing this as follows:</p>
  
  <pre><code>view = (WebView) findViewById(R.id.webpage);
  
      final long startTime = System.currentTimeMillis();
      final long endTime;
      try {
          final LoadFromZipNG loader = new LoadFromZipNG();
          WordprocessingMLPackage wordMLPackage = (WordprocessingMLPackage)loader.get(new FileInputStream(new File(Environment.getExternalStorageDirectory()+"/"+getIntent().getStringExtra("textReportFileName"))));
  
          String IMAGE_DIR_NAME = "images";
  
          String baseURL = this.getDir(IMAGE_DIR_NAME, Context.MODE_WORLD_READABLE).toURL().toString();
          System.out.println(baseURL); // file:/data/data/com.example.HelloAndroid/app_images/
  
          // Uncomment this to write image files to file system
          ConversionImageHandler conversionImageHandler = new AndroidFileConversionImageHandler( IMAGE_DIR_NAME, // &lt;-- don't use a path separator here
                  baseURL, false, this);
  </code></pre>
  
  <blockquote>
    <p>Toast.makeText(getApplicationContext(),baseURL,Toast.LENGTH_SHORT).show();</p>
  </blockquote>
  
  <pre><code>        HtmlExporterNonXSLT withoutXSLT = new HtmlExporterNonXSLT(wordMLPackage, conversionImageHandler);
  
          html = XmlUtils.w3CDomNodeToString(withoutXSLT.export());
  
          File filex = new File(Environment.getExternalStorageDirectory()+"/temp/"+getIntent().getStringExtra("textReportFileName").replace("docx","html"));
          if(filex.exists()) {
  
              Toast.makeText(getApplicationContext(),"File exists",Toast.LENGTH_SHORT).show();
  
              InputStream iss = new FileInputStream(filex);
              int size = iss.available();
  
              byte[] buffer = new byte[size];
              iss.read(buffer);
              iss.close();
  
              html = new String(buffer);
              //html = html.substring(html.indexOf("0\" rows=\"9\"&gt;") + 16);
          }
          else{
  
          }
      } catch (Exception e) {
          e.printStackTrace();
          finish();
      } finally {
          endTime = System.currentTimeMillis();
      }
  </code></pre>
  
  <p>The highlighted toast message gives the output : file:/data/data/com.tek.teksmartlab/app_images/</p>
  
  <p>Also the final html file has the image tags with the src = "file:/data/data/com.tek.teksmartlab/app_images/image1.jpg" (like form)</p>
  
  <p>Now I understand the path file:/data/data/com.tek.teksmartlab/app_images/ is non existent in the internal storage so <code>HOW DO I SAVE THE IMAGES FROM THIS PATH TO INTERNAL STORAGE??</code></p>
  
  <p>I have tried copying the image from assets folder to internal storage code but that didn't work for me. </p>