I'm having some problems loading a .ten file from a stream.
Using the editor I saved a chart layout in .ten format.
This .ten file was then imported into a database blob field.
An .aspx file reads this field into a MemoryStream which is
loaded, using chart.import.template.load(stream), into a new Steema.TeeChart.Chart object.
This loading fails with a 'Object reference not set to an instance of an object' exception.

The number of bytes from the stream are exactly the same as
the original .ten file has, so no problems there I think.
As a matter of fact, just now I saved the stream from the database
to another .ten file and imported that from the editor and all works
fine.
Can you please help ? This is a crucial part of way I want to work
with this component.
Rogier