When to dispose a FileInfoStream?

1 Answer 20 Views
FileSelect
Volker
Top achievements
Rank 1
Volker asked on 24 Jan 2025, 07:40 PM

Hi!

I'm using the FileSelect component. When accessing the data, it's of type FileSelectFileInfo, which has a stream of type FileInfoStream, which is disposable.

So, do I have to dispose it after having read the data?

 

Lots of Greetings!

Volker

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 29 Jan 2025, 08:26 AM

Hi Volker,

You can Close() or Dispose() our Stream and there is no problem in doing that. However, we don't explicitly require developers to do it, as it may not be necessary and it basically depends on your scenario.

On a side note, please ask the license holder at your company to assign you a license for Telerik UI for Blazor. This will make your account compliant to our license agreement.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Volker
Top achievements
Rank 1
commented on 29 Jan 2025, 03:14 PM

Many thanks! Also, I will talk to my license holder. 
Tags
FileSelect
Asked by
Volker
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or