Click here to Skip to main content
15,914,642 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Equivalent to Java "Properties" Class Pin
K.L.K26-May-08 12:55
K.L.K26-May-08 12:55 
AnswerRe: C# Equivalent to Java "Properties" Class Pin
buchstaben26-May-08 21:07
buchstaben26-May-08 21:07 
Questionload user predefined control at runtime created form Pin
redspiderke26-May-08 11:11
redspiderke26-May-08 11:11 
AnswerRe: load user predefined control at runtime created form Pin
Anthony Mushrow26-May-08 13:05
professionalAnthony Mushrow26-May-08 13:05 
GeneralRe: load user predefined control at runtime created form Pin
redspiderke27-May-08 2:02
redspiderke27-May-08 2:02 
QuestionWrite binaryfile to table/dataset and then to XMLFile .... Pin
MaWeRic26-May-08 9:29
MaWeRic26-May-08 9:29 
AnswerRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
Giorgi Dalakishvili26-May-08 9:46
mentorGiorgi Dalakishvili26-May-08 9:46 
AnswerRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
The Nightcoder27-May-08 16:01
The Nightcoder27-May-08 16:01 
I think the DataSet uses Base64 encoding when it serializes binary fields into XML. I may be wrong, but it is the most common way to encode binary data in XML.

To read it, you could use a System.Xml.XmlReader (and its ReadElementContentAsBase64 method once you've located the correct field). However, the normal way to do it would be to recreate the dataset from the XML file, though (using ReadXml on a new dataset)...

If for some reason you don't want to use the system-provided XML tools and instead want to read the file as text and do your own decoding, you can either google for base64 or use, for example, System.Convert.FromBase64String.

Peter the small turnip

(1) It Has To Work. --RFC 1925[^]

GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
MaWeRic27-May-08 22:24
MaWeRic27-May-08 22:24 
GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
The Nightcoder28-May-08 2:12
The Nightcoder28-May-08 2:12 
QuestionShould I implement IDisposable? Pin
DaveyM6926-May-08 7:28
professionalDaveyM6926-May-08 7:28 
AnswerRe: Should I implement IDisposable? Pin
N a v a n e e t h26-May-08 7:32
N a v a n e e t h26-May-08 7:32 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 7:48
professionalScott Dorman26-May-08 7:48 
GeneralRe: Should I implement IDisposable? Pin
N a v a n e e t h26-May-08 16:47
N a v a n e e t h26-May-08 16:47 
AnswerRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 7:47
professionalScott Dorman26-May-08 7:47 
GeneralRe: Should I implement IDisposable? Pin
DaveyM6926-May-08 7:59
professionalDaveyM6926-May-08 7:59 
GeneralRe: Should I implement IDisposable? Pin
Guffa26-May-08 11:37
Guffa26-May-08 11:37 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman26-May-08 15:00
professionalScott Dorman26-May-08 15:00 
GeneralRe: Should I implement IDisposable? Pin
S. Senthil Kumar26-May-08 20:57
S. Senthil Kumar26-May-08 20:57 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 1:28
professionalScott Dorman27-May-08 1:28 
GeneralRe: Should I implement IDisposable? Pin
Guffa26-May-08 21:30
Guffa26-May-08 21:30 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 1:24
professionalScott Dorman27-May-08 1:24 
GeneralRe: Should I implement IDisposable? Pin
Guffa27-May-08 2:21
Guffa27-May-08 2:21 
GeneralRe: Should I implement IDisposable? Pin
DaveyM6927-May-08 11:53
professionalDaveyM6927-May-08 11:53 
GeneralRe: Should I implement IDisposable? Pin
Scott Dorman27-May-08 16:14
professionalScott Dorman27-May-08 16:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.