Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
QuestionHow to write properties in design time Pin
El'Cachubrey27-Feb-08 2:15
El'Cachubrey27-Feb-08 2:15 
AnswerRe: How to write properties in design time Pin
Xmen Real 27-Feb-08 2:33
professional Xmen Real 27-Feb-08 2:33 
Generalstore files in a database Pin
Member 366830827-Feb-08 2:13
Member 366830827-Feb-08 2:13 
GeneralRe: store files in a database Pin
Aaron VanWieren27-Feb-08 3:35
Aaron VanWieren27-Feb-08 3:35 
GeneralRe: store files in a database Pin
Member 36683081-Mar-08 23:12
Member 36683081-Mar-08 23:12 
GeneralIO.Directory.GetFiles() Problem.. Pin
ptr2void27-Feb-08 0:55
ptr2void27-Feb-08 0:55 
GeneralRe: IO.Directory.GetFiles() Problem.. Pin
Giorgi Dalakishvili27-Feb-08 1:02
mentorGiorgi Dalakishvili27-Feb-08 1:02 
Questionhow to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
puneet.priyadarshi27-Feb-08 0:48
puneet.priyadarshi27-Feb-08 0:48 
hi friends.
I have converted a doc or image file to byte code by this code.

-------------------
FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read);
int length = (int)fs.Length;
byte[] content = new byte[length];
fs.Read(content, 0, length);
--------------------

Now i want to convert this "content" i.e array of byte to actual file.

at the time of conversion in which object should i store the output (because i don't know the type of file i had converted to byte code).

How to do this.
(basically i m sending a file(image,doc,txt etc) from one machine to another remotely).
Hope you understand what i want to do here.

Thanks lot.
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Giorgi Dalakishvili27-Feb-08 0:57
mentorGiorgi Dalakishvili27-Feb-08 0:57 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
puneet.priyadarshi27-Feb-08 1:00
puneet.priyadarshi27-Feb-08 1:00 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Giorgi Dalakishvili27-Feb-08 1:04
mentorGiorgi Dalakishvili27-Feb-08 1:04 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Mel Padden27-Feb-08 2:33
Mel Padden27-Feb-08 2:33 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Xmen Real 27-Feb-08 2:41
professional Xmen Real 27-Feb-08 2:41 
QuestionHow to get column size of a table Pin
sri_k4727-Feb-08 0:01
sri_k4727-Feb-08 0:01 
AnswerRe: How to get column size of a table Pin
Gareth H27-Feb-08 0:49
Gareth H27-Feb-08 0:49 
QuestionHow to create folder [modified] Pin
sugunavathysubramanian26-Feb-08 23:52
sugunavathysubramanian26-Feb-08 23:52 
AnswerRe: How to create folder Pin
Martin#26-Feb-08 23:56
Martin#26-Feb-08 23:56 
GeneralRe: How to create folder Pin
sugunavathysubramanian27-Feb-08 0:27
sugunavathysubramanian27-Feb-08 0:27 
GeneralRe: How to create folder Pin
Justin Perez27-Feb-08 4:25
Justin Perez27-Feb-08 4:25 
AnswerRe: How to create folder Pin
Giorgi Dalakishvili26-Feb-08 23:59
mentorGiorgi Dalakishvili26-Feb-08 23:59 
Generalproblem with richtextbox Keypress Event Pin
DKalepu26-Feb-08 23:31
DKalepu26-Feb-08 23:31 
GeneralRe: problem with richtextbox Keypress Event Pin
telha27-Feb-08 1:25
telha27-Feb-08 1:25 
GeneralRe: problem with richtextbox Keypress Event Pin
DKalepu27-Feb-08 19:03
DKalepu27-Feb-08 19:03 
GeneralPausing thread untill asynchronous operation finishes. Pin
N a v a n e e t h26-Feb-08 23:28
N a v a n e e t h26-Feb-08 23:28 
GeneralRe: Pausing thread untill asynchronous operation finishes. Pin
Martin#26-Feb-08 23:47
Martin#26-Feb-08 23:47 

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.