Click here to Skip to main content
15,888,177 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problem with Visual Studio 2005 Pin
Judah Gabriel Himango9-Aug-07 5:37
sponsorJudah Gabriel Himango9-Aug-07 5:37 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 6:53
sharpiesharpie9-Aug-07 6:53 
GeneralRe: Problem with Visual Studio 2005 Pin
Judah Gabriel Himango9-Aug-07 7:21
sponsorJudah Gabriel Himango9-Aug-07 7:21 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 9:16
sharpiesharpie9-Aug-07 9:16 
GeneralRe: Problem with Visual Studio 2005 Pin
Luc Pattyn9-Aug-07 9:30
sitebuilderLuc Pattyn9-Aug-07 9:30 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 9:39
sharpiesharpie9-Aug-07 9:39 
Questionhelp converting an image to a string. Pin
snorkie9-Aug-07 4:59
professionalsnorkie9-Aug-07 4:59 
AnswerRe: help converting an image to a string. Pin
Luc Pattyn9-Aug-07 5:20
sitebuilderLuc Pattyn9-Aug-07 5:20 
Hi,

XML is supposed to be readable text, and structured as well.
Inserfting a lot of arbitrary bytes will not preserve these characteristics;
some of your bytes will happen to be < or > signs, others will be negative, etc.

So you need a way to encode (and later decode) arbitrary bytes into printable characters
or strings.

A popular way of doing that is with Convert.ToBase64String(); this will generate a string
from a limited set of 64 characters; it generates one character for every 6-bits of
input data, hence it expands the data by 8/6 in size. That's the price to pay to keep
it readable/printable, and XML-compatible.

Decoding that string is done with Convert.FromBase64String().

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: help converting an image to a string. Pin
snorkie9-Aug-07 5:33
professionalsnorkie9-Aug-07 5:33 
GeneralRe: help converting an image to a string. Pin
Luc Pattyn9-Aug-07 5:47
sitebuilderLuc Pattyn9-Aug-07 5:47 
QuestionInactivity Timer Pin
Stathread9-Aug-07 4:17
Stathread9-Aug-07 4:17 
AnswerRe: Inactivity Timer Pin
originSH9-Aug-07 4:26
originSH9-Aug-07 4:26 
AnswerRe: Inactivity Timer Pin
Dinobot_Slag9-Aug-07 4:28
Dinobot_Slag9-Aug-07 4:28 
GeneralRe: Inactivity Timer Pin
Stathread9-Aug-07 4:42
Stathread9-Aug-07 4:42 
QuestionAcces Database: Password Protected Pin
Ken Mazaika9-Aug-07 3:22
Ken Mazaika9-Aug-07 3:22 
AnswerRe: Acces Database: Password Protected Pin
Colin Angus Mackay9-Aug-07 3:28
Colin Angus Mackay9-Aug-07 3:28 
GeneralRe: Acces Database: Password Protected Pin
Ken Mazaika9-Aug-07 3:32
Ken Mazaika9-Aug-07 3:32 
AnswerRe: Acces Database: Password Protected Pin
Michael Potter9-Aug-07 3:34
Michael Potter9-Aug-07 3:34 
GeneralRe: Acces Database: Password Protected Pin
Ken Mazaika9-Aug-07 3:39
Ken Mazaika9-Aug-07 3:39 
AnswerRe: Acces Database: Password Protected Pin
Ken Mazaika9-Aug-07 7:12
Ken Mazaika9-Aug-07 7:12 
QuestionChange Windows Time Pin
The Brazilian One9-Aug-07 3:19
The Brazilian One9-Aug-07 3:19 
AnswerRe: Change Windows Time Pin
Martin#9-Aug-07 3:27
Martin#9-Aug-07 3:27 
JokeRe: Change Windows Time Pin
Luc Pattyn9-Aug-07 3:35
sitebuilderLuc Pattyn9-Aug-07 3:35 
GeneralRe: Change Windows Time Pin
Martin#9-Aug-07 3:36
Martin#9-Aug-07 3:36 
GeneralRe: Change Windows Time Pin
Martin#9-Aug-07 3:39
Martin#9-Aug-07 3:39 

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.