Click here to Skip to main content
15,916,683 members
Home / Discussions / C#
   

C#

 
QuestionConvert Word doc to Byte Pin
MWRivera23-Nov-10 8:21
MWRivera23-Nov-10 8:21 
AnswerRe: Convert Word doc to Byte Pin
Luc Pattyn23-Nov-10 8:34
sitebuilderLuc Pattyn23-Nov-10 8:34 
GeneralRe: Convert Word doc to Byte Pin
MWRivera23-Nov-10 9:16
MWRivera23-Nov-10 9:16 
GeneralRe: Convert Word doc to Byte Pin
Luc Pattyn23-Nov-10 9:24
sitebuilderLuc Pattyn23-Nov-10 9:24 
GeneralRe: Convert Word doc to Byte Pin
MWRivera23-Nov-10 9:45
MWRivera23-Nov-10 9:45 
GeneralRe: Convert Word doc to Byte Pin
Luc Pattyn23-Nov-10 10:34
sitebuilderLuc Pattyn23-Nov-10 10:34 
AnswerRe: Convert Word doc to Byte Pin
NickHighIQ23-Nov-10 13:51
NickHighIQ23-Nov-10 13:51 
GeneralRe: Convert Word doc to Byte Pin
Luc Pattyn23-Nov-10 14:41
sitebuilderLuc Pattyn23-Nov-10 14:41 
NickHighIQ wrote:
don't let Luc Pattyn make you feel bad for not being born with the intrinsic knowledge of Base64 and its use


Obviously I disagree.

1.
Yes, I happen to know for a long time what base64 means (something similar was used by Digital Equipment 30 years ago in their radix50 encoding they used to stuff three characters in a 16-bit word). However there is no need for such "intrinsic knowledge" to realize the approach is inappropriate. All it takes is reading up on the classes/methods used.

This is the very first line MSDN[^] offers about Convert.FromBase64String:

Converts the specified String, which encodes binary data as base 64 digits, to an equivalent 8-bit unsigned integer array.

I don't think of digits when a Word document has to be handled somehow. Not in base 10, not in hex, and not in a binary encoding of some kind.

When reading on, the same MSDN page also offers a good example, with encoding and decoding code, and encoded/decoded data. How it would fit the job at hand is a mystery to me, and I would hope to anyone who has looked at that page.

2.
I did not intend any demeaning tone, and frankly I don't see one. What I do here is providing information, advice, and guidelines. A universal guideline is this: read up on the class or method you are considering but are not familiar with.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: Convert Word doc to Byte Pin
NickHighIQ23-Nov-10 15:53
NickHighIQ23-Nov-10 15:53 
GeneralRe: Convert Word doc to Byte Pin
Pete O'Hanlon23-Nov-10 23:13
mvePete O'Hanlon23-Nov-10 23:13 
GeneralRe: Convert Word doc to Byte Pin
NickHighIQ24-Nov-10 1:10
NickHighIQ24-Nov-10 1:10 
GeneralRe: Convert Word doc to Byte Pin
Luc Pattyn24-Nov-10 3:42
sitebuilderLuc Pattyn24-Nov-10 3:42 
GeneralRe: Convert Word doc to Byte Pin
MWRivera24-Nov-10 4:59
MWRivera24-Nov-10 4:59 
GeneralRe: Convert Word doc to Byte Pin
MWRivera24-Nov-10 5:01
MWRivera24-Nov-10 5:01 
GeneralRe: Convert Word doc to Byte Pin
MWRivera30-Nov-10 5:05
MWRivera30-Nov-10 5:05 
QuestionGeneric Event In Interface Pin
Kevin Marois23-Nov-10 6:10
professionalKevin Marois23-Nov-10 6:10 
AnswerRe: Generic Event In Interface Pin
Keith Barrow23-Nov-10 6:25
professionalKeith Barrow23-Nov-10 6:25 
QuestionProgrammatically checking DataGridViewCheckBoxCell Pin
kapax523-Nov-10 4:34
kapax523-Nov-10 4:34 
AnswerRe: Programmatically checking DataGridViewCheckBoxCell Pin
Dave Kreskowiak23-Nov-10 6:25
mveDave Kreskowiak23-Nov-10 6:25 
Questionhow to return? Pin
Jassim Rahma23-Nov-10 4:12
Jassim Rahma23-Nov-10 4:12 
AnswerStill not a C# question Pin
Pete O'Hanlon23-Nov-10 4:22
mvePete O'Hanlon23-Nov-10 4:22 
AnswerRe: how to return? Pin
Dave Kreskowiak23-Nov-10 4:30
mveDave Kreskowiak23-Nov-10 4:30 
AnswerRe: how to return? Pin
Keith Barrow23-Nov-10 6:28
professionalKeith Barrow23-Nov-10 6:28 
AnswerRe: how to return? Pin
Smithers-Jones23-Nov-10 6:40
Smithers-Jones23-Nov-10 6:40 
Questionhow to output this from mysql? Pin
Jassim Rahma23-Nov-10 4:10
Jassim Rahma23-Nov-10 4:10 

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.