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?
Agreed, I have been working on that this afternoon.
thanks for the insight.
Hi,
If it's hidden, anyway, then why use a TextBox for this? Why not simply store the string in a variable?
Like I said, I am pretty sure that this is a limitation of the TextBox control in DotNet. A TextBox is a UI component - it's used for display. And so it's not really designed to hold a huge amount of text. 32K worth of text would not even fit on most user's screens. :)
I'd recommend that you just store the string in a variable. Using a TextBox is a waste of resources.
The TextBox is hidden and I am simply trapping on the TextChanged event where I then send the base64 encoded image to convert it back to a .NET image for view on the screen. As the user is scrolling through records the image assigned to the record will be displayed.
We need to store as base64 as the record is sent as a message (XML) via a JMS (SonicMQ).
Hi Roger,
I'm pretty sure this is a limitation of the Inbox TextBox control - which the UltraTextEditor uses or editing.
Out of curiosity, why would you want to display a base64 encoded image as text? What possible use could this be to a user?
Matt,
I am simply using ultraTextEditor1:Text to retrieve the text.
We are not using threading.
The .NET stack trace is:
.NET StackTrace:--> at Progress.ClrBridge.ProMarshal.StringToLONGCHRFLD(ditem* , Object ) at Progress.ClrBridge.ProMarshal.FromString(ditem* , Object ) at Progress.ClrBridge.ProMarshal.ToDItem(ditem* , Object ) at Progress.ClrBridge.BrgClrFromPro.getProperty(BrgClrFromPro* , Int32 , SByte* , SByte* , ditem* , Int32* )