asp.net mvc - Unicode Issue with Chrome -
here goes path follow.
1. user enters text in html editor, tiny mce edtitor.
2. text uploaded server side mvc controller
3. controller use following line write html content (string) temp location on server
new memorystream(encoding.unicode.getbytes(htmlcontent))
4. file in temp location (in step) used byte[] of contents
5. in last step byte[] send via stored procedure database column field of type varbinary.
problem when read varbinary byte[] , send browser using following line of mvc mime type text/html.
file(attachmentfile.binarydata, mimetype, pfilename);
file downloads , opens correctly in both ie , firefox not in chrome. don't know issue chrome
Comments
Post a Comment