Saving Html to RTF with image fails

  •  03-25-2009, 3:33 PM

    Saving Html to RTF with image fails

    I am using CuteEditor to allow clients to create letters.  Those letters are saved to our database in HTML and RTF format.  I am using the Convertor class to convert the HTML to RTF before I save it to the database.
     
    This works fine as long as the letter does not contain an image. If an image is added to the letter the following error occurs when trying to convert to RTF:
     
    Invalid URI: The format of the URI could not be determined.
     
    The line of code that this error occurs on is:
     
    CuteEditor.Convertor.RTF.HTML2RTF convertor = new CuteEditor.Convertor.RTF.HTML2RTF(Editor1.Text);
     
    Any help on this would be appreciated as I would like my clients to be able to add images to the letters.  We definitely need to save in both HTML and RTF format due to some back end processes the letters run through.
     
    Thanks!
View Complete Thread