Re: UTF8 encoding
- From: shapper <mdmoura@xxxxxxxxx>
- Date: Mon, 16 Nov 2009 08:11:49 -0800 (PST)
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
.
- Follow-Ups:
- Re: UTF8 encoding
- From: Patrice
- Re: UTF8 encoding
- References:
- UTF8 encoding
- From: shapper
- Re: UTF8 encoding
- From: Patrice
- UTF8 encoding
- Prev by Date: Re: Parsing some info out of HTML - can you help me please?
- Next by Date: Drag and drop between ListBoxes
- Previous by thread: Re: UTF8 encoding
- Next by thread: Re: UTF8 encoding
- Index(es):
Relevant Pages
|