Click here to Skip to main content
15,907,910 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: streamreader functionality Pin
pbaggett27-Feb-06 4:34
pbaggett27-Feb-06 4:34 
AnswerRe: streamreader functionality Pin
Guffa27-Feb-06 6:27
Guffa27-Feb-06 6:27 
GeneralRe: streamreader functionality Pin
pbaggett27-Feb-06 7:59
pbaggett27-Feb-06 7:59 
AnswerRe: streamreader functionality Pin
Guffa27-Feb-06 9:29
Guffa27-Feb-06 9:29 
GeneralRe: streamreader functionality Pin
pbaggett27-Feb-06 10:30
pbaggett27-Feb-06 10:30 
AnswerRe: streamreader functionality Pin
Guffa27-Feb-06 13:00
Guffa27-Feb-06 13:00 
JokeRe: streamreader functionality Pin
pbaggett28-Feb-06 3:14
pbaggett28-Feb-06 3:14 
GeneralRe: streamreader functionality Pin
Guffa28-Feb-06 8:52
Guffa28-Feb-06 8:52 
I tested your method with one zip file, and it fails.

I examined the data in asciiBytes, and all character values above 127 turns into question marks.

Are you sure that you really use the code that you showed? Have you verified that the zip files are intact after you sent them?

I reduced the code substantially by skipping the BinaryReader and the double conversion. Closing the file might be a good idea, also. It's in C#, but I think you can see the changes:

FileStream fs = File.OpenRead(filename);<br />
byte[] ra = new byte[fs.Length];<br />
fs.Read(ra, 0, ra.Length);<br />
fs.Close();<br />
string asciiString = new string(Encoding.ASCII.GetChars(ra, 0, ra.Length));


Still doesn't work, though.

---
b { font-weight: normal; }

GeneralRe: streamreader functionality Pin
pbaggett1-Mar-06 4:39
pbaggett1-Mar-06 4:39 
QuestionRun Time Text Box Pin
Nadeem Akhter27-Feb-06 4:00
Nadeem Akhter27-Feb-06 4:00 
Questiondatabase engine for larg application Pin
illusionFinder27-Feb-06 2:46
illusionFinder27-Feb-06 2:46 
AnswerRe: database engine for larg application Pin
Colin Angus Mackay27-Feb-06 2:57
Colin Angus Mackay27-Feb-06 2:57 
GeneralRe: database engine for larg application Pin
illusionFinder27-Feb-06 3:07
illusionFinder27-Feb-06 3:07 
GeneralRe: database engine for larg application Pin
Colin Angus Mackay27-Feb-06 3:20
Colin Angus Mackay27-Feb-06 3:20 
AnswerRe: database engine for larg application Pin
Guffa27-Feb-06 3:38
Guffa27-Feb-06 3:38 
Questionpc can see its self on network without network Pin
illusionFinder27-Feb-06 2:44
illusionFinder27-Feb-06 2:44 
QuestionWeird problem with the Body of a MailMessage Pin
dlarkin7727-Feb-06 2:38
dlarkin7727-Feb-06 2:38 
QuestionMouse Cursor....... Pin
daviiie27-Feb-06 2:32
daviiie27-Feb-06 2:32 
AnswerRe: Mouse Cursor....... Pin
illusionFinder27-Feb-06 3:04
illusionFinder27-Feb-06 3:04 
AnswerRe: Mouse Cursor....... Pin
Guffa27-Feb-06 4:20
Guffa27-Feb-06 4:20 
Questionvistadb Pin
illusionFinder26-Feb-06 23:37
illusionFinder26-Feb-06 23:37 
AnswerRe: vistadb Pin
Colin Angus Mackay27-Feb-06 0:08
Colin Angus Mackay27-Feb-06 0:08 
QuestionChainz game Pin
ands_226-Feb-06 23:08
ands_226-Feb-06 23:08 
GeneralRe: Chainz game Pin
Guffa26-Feb-06 23:14
Guffa26-Feb-06 23:14 
GeneralRe: Chainz game Pin
ands_226-Feb-06 23:24
ands_226-Feb-06 23:24 

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.