Appengine conversion Api (java)
===

I want to convert pdfs to image files within appengine.  Ideally I would upload the pdf as a blob and store both the pdf and an image of the pdf.  The conversion could also be done at a different time (taskqueue).

I have not found any working samples or good documentation of doing this.  
The official documentation is [here][1].  It gives this example.

     // Create a conversion request from HTML to PNG.
    Asset asset = new Asset(
    "text/html", "<b>some data<b>".getBytes(), "testfile.html");
    Document document = new Document(asset);
    Conversion conversion = new Conversion(document, "image/png");

    ConversionService service =
    ConversionServiceFactory.getConversionService();
    ConversionResult result = service.convert(conversion);

    if (result.success()) {
     // Note: in most cases, we will return data all in one asset,
     // except that we return multiple assets for multi-page images.
     for (Asset asset : result.getOutputDoc().getAssets()) {
       doSomethingWithAsset(asset.getData());
     }
    } else {
      handleError(result.getErrorCode());
    }


So According to this I need to create a Asset from my pdf blob.  How do I get the blob into bytes?  I am guessing with BlobstoreStream??

I am also curious as to the quality of the conversion if anyone has experience.

  [1]: https://developers.google.com/appengine/docs/java/conversion/overview