What is the type of script?
   
  Eitherway, would this work for you?
   
  Database db = new Database("C:\\TEST.MSI", DatabaseOpenMode.ReadOnly);
  View view = db.OpenView("SELECT `Name`, `Data` From `Binary` WHERE 
`Binary`.`Name` = 'ISXMLCFG.DLL'");
  view.Execute();
  foreach (Record rec in view) using (rec)
  {
  Stream stream = rec["Data"] as Stream;
  }
   
   
  

Christopher Karper <[EMAIL PROTECTED]> wrote:
  I'm trying to read binary data into a memory stream, but 

    Stream stream = binRec.GetStream("Data");
    using (StreamReader sr = new StreamReader(stream))
    {
        script += sr.ReadToEnd();
    }



Gives me an ArgumentNullException when I try to read the stream.   Am I missing 
a step?


Is this stream not compatible with a streamreader?

Chris
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


       
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to