Cdudej said:
I have a byte array (byte[] file) the file contains html code.
What file contains HTML code? Do you mean the byte array contains HTML
code?
Now i either want to allow the user to download it or open it. How
does one do this.
What is "it"? The HTML code?
What does "download it" mean in this context? Do you really have a user
at a remote endpoint, to whom you will deliver the data on request as a
download? Or something else?
What does "open it" mean in this context? Do you mean you want the data
interpreted as HTML and rendered in a browser window? In terms of
delivering the data to the user, is this (i.e. "open it") different from
"download it" or is the only difference in what happens _after_ the data
has been delivered to the user?
Unfortunately, your original question is very vague. Please provide a
more specific question so that a reasonable answer can be provided.
Thanks,
Pete