Re: UTF8 encoding

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,

On a C# web application I have a few global resources that I need to
save on the database.

Examples:
- Welcome Text (Plain Text)
- Contact Text (Html Text)
- Logo Image (Image JPEG)
- About the compay file (PDF file)
- Catalog Ambient Sound (MP3 File)

These are isolated elements that are used around the web application.
So I would like to have a way to save all them on the same SQL table
or in a XML file for small projects.

For Plain Text and Html Text I can read the bytes in it.
The other files I think in my C# code I will easily.

When saving in a XML file I think I need to save the byte[]
representation to Base64String.

In both cases, SQL and XML, I will have a column with the Mime Type of
the content.

In case of the XML I will never have more than 20 content elements.
In case of the SQL I can have around 1000 element max.

I do know about file stream. And I do use it for saving files in a
Documents table.

But in this case the content itself can be a file, or plain text or
plain html, etc.
Can I save to file stream a plain text or plain html text that was
converted to byte[]?

Does this make sense?

Thanks,
Miguel



.



Relevant Pages

  • [kde] Re: Desktop effects with intel 945
    ... plain text only, but last time I did not consciously send the HTML ... window translucency can be useful at times as ... However, if you want, you /can/ actually switch to compiz for KDE's window ...
    (KDE)
  • Re: New Imformation: Also Kellys Line 227 Left: Set IE Fonts
    ... that is different than posting html. ... included via plain text and are on rare occasions here. ... 2004 Windows MVP "Winny" Award ... > *what notepad is or where I can find it*--it was introduced in Windows 95 ...
    (microsoft.public.windowsxp.general)
  • Re: New Imformation: Also Kellys Line 227 Left: Set IE Fonts
    ... that is different than posting html. ... included via plain text and are on rare occasions here. ... 2004 Windows MVP "Winny" Award ... > *what notepad is or where I can find it*--it was introduced in Windows 95 ...
    (microsoft.public.windowsxp.customize)
  • Re: New Imformation: Also Kellys Line 227 Left: Set IE Fonts
    ... that is different than posting html. ... included via plain text and are on rare occasions here. ... 2004 Windows MVP "Winny" Award ... > *what notepad is or where I can find it*--it was introduced in Windows 95 ...
    (microsoft.public.windowsxp.basics)
  • Re: Font type frustration
    ... If someone sends you mail using HTML, you see whatever font and formatting ... send them Plain Text mail. ... Except I have a sneaking feeling that maybe your preference for plain mail ...
    (microsoft.public.mac.office.entourage)