Click here to Skip to main content
15,612,190 members
Home / Discussions / C#
   

C#

 
QuestionC# and COM and return values. (newby question) Pin
Maximilien20-Jun-08 8:06
Maximilien20-Jun-08 8:06 
AnswerRe: C# and COM and return values. (newby question) Pin
leppie20-Jun-08 8:15
leppie20-Jun-08 8:15 
GeneralRe: C# and COM and return values. (newby question) Pin
Maximilien20-Jun-08 8:36
Maximilien20-Jun-08 8:36 
GeneralRe: C# and COM and return values. (newby question) Pin
Brady Kelly20-Jun-08 8:56
Brady Kelly20-Jun-08 8:56 
GeneralRe: C# and COM and return values. (newby question) Pin
Luc Pattyn20-Jun-08 9:07
sitebuilderLuc Pattyn20-Jun-08 9:07 
GeneralRe: C# and COM and return values. (newby question) Pin
leppie20-Jun-08 9:25
leppie20-Jun-08 9:25 
GeneralRe: C# and COM and return values. (newby question) Pin
leppie20-Jun-08 9:27
leppie20-Jun-08 9:27 
QuestionCannot seem to be able to write a byte[] to a file Pin
LCI20-Jun-08 7:56
LCI20-Jun-08 7:56 
I am using StreamWriter to write out some jpeg data in byte[] to a file.
The result of my file is always "System.Byte[]"

byte[] jpegData = new byte[img.Length];
jpegData = Convert.FromBase64String(img);
using (StreamWriter sr1 = new StreamWriter("C:\\123.jpg"))
{

sr1.Write(Convert.ToString(jpegData));
sr1.Flush();
sr1.Close();
}
AnswerRe: Cannot seem to be able to write a byte[] to a file Pin
Giorgi Dalakishvili20-Jun-08 8:06
mentorGiorgi Dalakishvili20-Jun-08 8:06 
AnswerRe: Cannot seem to be able to write a byte[] to a file Pin
leppie20-Jun-08 8:12
leppie20-Jun-08 8:12 
GeneralRe: Cannot seem to be able to write a byte[] to a file Pin
LCI20-Jun-08 8:22
LCI20-Jun-08 8:22 
GeneralRe: Cannot seem to be able to write a byte[] to a file Pin
leppie20-Jun-08 8:27
leppie20-Jun-08 8:27 
GeneralRe: Cannot seem to be able to write a byte[] to a file Pin
LCI20-Jun-08 8:32
LCI20-Jun-08 8:32 
QuestionHex String into number Pin
aman200620-Jun-08 7:26
aman200620-Jun-08 7:26 
AnswerRe: Hex String into number Pin
snorkie20-Jun-08 7:47
professionalsnorkie20-Jun-08 7:47 
GeneralRe: Hex String into number Pin
aman200620-Jun-08 7:56
aman200620-Jun-08 7:56 
GeneralRe: Hex String into number Pin
snorkie20-Jun-08 8:05
professionalsnorkie20-Jun-08 8:05 
GeneralRe: Hex String into number Pin
leppie20-Jun-08 8:17
leppie20-Jun-08 8:17 
GeneralRe: Hex String into number Pin
snorkie20-Jun-08 8:21
professionalsnorkie20-Jun-08 8:21 
GeneralRe: Hex String into number Pin
leppie20-Jun-08 8:29
leppie20-Jun-08 8:29 
GeneralRe: Hex String into number Pin
snorkie20-Jun-08 8:40
professionalsnorkie20-Jun-08 8:40 
GeneralRe: Hex String into number Pin
Brady Kelly20-Jun-08 8:57
Brady Kelly20-Jun-08 8:57 
JokeRe: Hex String into number Pin
Spacix One20-Jun-08 9:23
Spacix One20-Jun-08 9:23 
GeneralRe: Hex String into number Pin
aman200620-Jun-08 8:46
aman200620-Jun-08 8:46 
AnswerRe: Hex String into number Pin
leppie20-Jun-08 8:19
leppie20-Jun-08 8:19 

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.