How to get data from BlazorInputfile
i use BlazorInputFile on my project but dont know how to transform the stream that i get from the input file(a zipFile) to an ZipArchive to loop in it….
i use BlazorInputFile on my project but dont know how to transform the stream that i get from the input file(a zipFile) to an ZipArchive to loop in it….
I need to export multiple files with varying file types (pdf, xlsx, .docx) stored in a database (Byte Array) and save them as a single zipped file. How should I handle the multiple files? I’m assuming I would need to first store the files in a list and using MemoryStream? I’m using the ZipArchive class to export the files as a zip file. Assuming this approach will work, I’m unsure of how to pass the list as an argument to the ZipArchive (DownloadMultipleFiles) method.
Is there a way to bind a MemoryStream to asp:image control?
Hi why using (var sw = new StreamWriter(ms)) returns Cannot access a closed Stream exception. Memory Stream is on top of this code.
I’m using the below sample code for writing and downloading a memory stream to a file in C#.