title: Android how to pass a PDF file as byte array to an intent
body: <p>I have an activity which allows users to open encrypted pdf files with a default pdf/ebook viewer. The result of the decryption of an encrypted pdf file is a byte array. I want to pass that byte array to an intent which opens that byte array as a PDF. The intent instantiation is something like this:  </p>
  
  <pre><code>PackageManager pm = PackageManager;
  Intent intentPdf = pm.GetLaunchIntentForPackage("com.adobe.android");
  </code></pre>
  
  <p>Is this possible? Can the pdf reader (Adobe/any other) understand from a byte array that it's a PDF file?
  I tried with Bundle.PutByteArray and Intent.putExtra but it won't work.</p>
  
  <pre><code>var bundle = new Bundle();
  bundle.PutByteArray("key", inputFileData);
  intentPdf.PutExtra("name", bundle);
  StartActivity(intentPdf);
  </code></pre>
  
  <p>inputFileData is my byte array.</p>