Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2170
UltraTextEditor.Text Exceeding 32K
posted

I am able to assign the .Text property of the UltraTextEditor to a length greater then 32K but when I attempt to retrieve the Text I get the error:

System.NullReferenceException: Object Reference not set to an instance of an object

I store a BASE64 encoded image in my database and convert this back to a .NET image at runtime so the user can see the image assigned to the record. Is there a way to retrieve the Text when exceeding 32K?

 

  • 37774
    posted

    Roger,

    How are you retrieving the text?  What is the call stack when you get this NullReferenceException?  I just tried creating an arbitrary string 33,000 characters long and did not have any trouble assigning the value or retrieving the value back.  In fact, I didn't get an exception with 333k characters.  Do you happen to be using threading?  If so, you should try to get the Value/Text of the editor on the main UI thread.

    -Matt