Microsft.Ink.Load(bytes) Exception thrown (ASP.NET) RRS feed

  • Question

  • I created a website.  We stored ink into the database.  I want to retrieve the ink and convert it to an image.  I am having trouble with it.  This is what I did.

    byte[] b = GetTheInkFromDB;

    if (b != null && b.Length != 0)

       Microsoft.Ink.Ink ink = new Ink();
       byte[] gifbytes = ink.Save(PersistenceFormat.Gif, CompressionMode.Maximum);
      MemoryStream img_stream = new MemoryStream(gifbytes);
      Image img = System.Drawing.Image.FromStream(img_stream);


    However, everytime it goes to ink.Load() an exception is thrown!  It says: "Value does not fall within the expected range."  I am doing this in asp.net.  I don't know why I am getting this. Thank you guys!


    Thursday, January 15, 2009 4:19 PM



    Hi Geek_Coder,

    These forums are for discussions about the Open Specifications Documentation.

    I believe that the following forum is more suitable for your question:


    Thanks and regards,

    SEBASTIAN CANEVARI - MSFT Senior SEE Protocol Documentation Team
    Friday, January 16, 2009 3:48 PM