Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
QuestionUTF-8 prefix in attachment filename Pin
mandrake_215-Jan-07 23:04
mandrake_215-Jan-07 23:04 
AnswerRe: UTF-8 prefix in attachment filename Pin
Guffa15-Jan-07 23:52
Guffa15-Jan-07 23:52 
GeneralRe: UTF-8 prefix in attachment filename Pin
mandrake_216-Jan-07 2:43
mandrake_216-Jan-07 2:43 
AnswerRe: UTF-8 prefix in attachment filename Pin
Guffa16-Jan-07 3:32
Guffa16-Jan-07 3:32 
QuestionOdbcDataAdapter query on update().. Pin
jamesjk15-Jan-07 22:56
jamesjk15-Jan-07 22:56 
AnswerRe: OdbcDataAdapter query on update().. Pin
bluewavestrider16-Jan-07 6:41
bluewavestrider16-Jan-07 6:41 
AnswerRe: Binary .dat files in VB .Net Pin
Stefan Troschuetz15-Jan-07 22:43
Stefan Troschuetz15-Jan-07 22:43 
QuestionDisplaying binary data in a text box Pin
Quaspam15-Jan-07 22:05
Quaspam15-Jan-07 22:05 
Hie guys. I got a problem. Recently i was working on files. All was fine until i tried reading from a binary file such as an mp3, dll file. Reading was not a problem but the problem came when i tried displaying the contents that i read into a byte[]. From the analysis that i did, i realized that the method **Encoding.ASCII.GetString() ** somehow stopped when it encountered a null character i.e binary 0. Can anyone help me? Below is a snippet of the code

.......
.....
FileStream fs=new FileStream(@"C:\example.mp3",FileMode.Open);
byte[] buffer=new byte[ fs.Length ];
fs.read(buffer,0,buffer.Length );
txtOutput.Text=Encoding.ASCII.GetString(buffer);
AnswerRe: Displaying binary data in a text box Pin
Christian Graus15-Jan-07 22:07
protectorChristian Graus15-Jan-07 22:07 
GeneralRe: Displaying binary data in a text box Pin
Mircea Puiu15-Jan-07 22:39
Mircea Puiu15-Jan-07 22:39 
QuestionDoubt regarding classlilbrary. Pin
kalaveer15-Jan-07 21:56
kalaveer15-Jan-07 21:56 
AnswerRe: Doubt regarding classlilbrary. Pin
Christian Graus15-Jan-07 22:05
protectorChristian Graus15-Jan-07 22:05 
AnswerRe: Doubt regarding classlilbrary. Pin
bluewavestrider16-Jan-07 6:45
bluewavestrider16-Jan-07 6:45 
QuestionMIME and DIME with Web Services Pin
blackjack215015-Jan-07 21:45
blackjack215015-Jan-07 21:45 
Questionquestion about C# find input text service! Pin
abstar15-Jan-07 21:27
abstar15-Jan-07 21:27 
AnswerRe: question about C# find input text service! Pin
Christian Graus15-Jan-07 21:41
protectorChristian Graus15-Jan-07 21:41 
GeneralRe: question about C# find input text service! Pin
abstar15-Jan-07 22:30
abstar15-Jan-07 22:30 
GeneralRe: question about C# find input text service! Pin
Christian Graus15-Jan-07 22:40
protectorChristian Graus15-Jan-07 22:40 
AnswerRe: question about C# find input text service! Pin
Mircea Puiu15-Jan-07 22:05
Mircea Puiu15-Jan-07 22:05 
GeneralRe: question about C# find input text service! Pin
Christian Graus15-Jan-07 22:07
protectorChristian Graus15-Jan-07 22:07 
GeneralRe: question about C# find input text service! Pin
Mircea Puiu15-Jan-07 22:32
Mircea Puiu15-Jan-07 22:32 
GeneralRe: question about C# find input text service! Pin
abstar15-Jan-07 22:33
abstar15-Jan-07 22:33 
GeneralRe: question about C# find input text service! Pin
abstar16-Jan-07 10:47
abstar16-Jan-07 10:47 
Questionhow to access a sub item of a ListView control?? Pin
Saira Tanwir15-Jan-07 21:22
Saira Tanwir15-Jan-07 21:22 
AnswerRe: how to access a sub item of a ListView control?? Pin
Christian Graus15-Jan-07 21:41
protectorChristian Graus15-Jan-07 21:41 

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.