Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
AnswerRe: OOPs And Debugging Techniques Pin
AspDotNetDev7-Mar-10 3:00
protectorAspDotNetDev7-Mar-10 3:00 
AnswerRe: OOPs And Debugging Techniques Pin
dybs7-Mar-10 15:22
dybs7-Mar-10 15:22 
AnswerRe: OOPs And Debugging Techniques Pin
N a v a n e e t h7-Mar-10 3:33
N a v a n e e t h7-Mar-10 3:33 
AnswerRe: OOPs And Debugging Techniques Pin
DotNetMan9-Mar-10 1:07
DotNetMan9-Mar-10 1:07 
QuestionPrint Message that is printed in Windows Service Application Pin
Abdul Rahman Hamidy7-Mar-10 0:50
Abdul Rahman Hamidy7-Mar-10 0:50 
AnswerRe: Print Message that is printed in Windows Service Application Pin
dan!sh 7-Mar-10 1:32
professional dan!sh 7-Mar-10 1:32 
GeneralRe: Print Message that is printed in Windows Service Application Pin
Abdul Rahman Hamidy7-Mar-10 17:24
Abdul Rahman Hamidy7-Mar-10 17:24 
QuestionAssembling bytes to an image Pin
Wamuti6-Mar-10 23:18
Wamuti6-Mar-10 23:18 
Hi all. I have a client-server distributed system. I want to transfer and image from the server to the client. In the server i have converted a .bmp image to byte array as this:

Image imageIn = Image.FromFile("me.bmp") ;
MemoryStream msr = new MemoryStream();
imageIn.Save(msr, System.Drawing.Imaging.ImageFormat.Gif);
byte[] byteIm = msr.ToArray();

ms.Send(byteIm);


The bytes are being transfered okay to the client. The problem is that i don't know how to assemble this byte back to an image to show in a picture box.
That is:

pictureBox1.Image =
Confused | :confused:
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

AnswerRe: Assembling bytes to an image Pin
OriginalGriff6-Mar-10 23:48
mveOriginalGriff6-Mar-10 23:48 
GeneralRe: Assembling bytes to an image Pin
Wamuti6-Mar-10 23:55
Wamuti6-Mar-10 23:55 
GeneralRe: Assembling bytes to an image Pin
OriginalGriff7-Mar-10 0:52
mveOriginalGriff7-Mar-10 0:52 
AnswerRe: Assembling bytes to an image Pin
dan!sh 6-Mar-10 23:49
professional dan!sh 6-Mar-10 23:49 
GeneralRe: Assembling bytes to an image Pin
Wamuti6-Mar-10 23:58
Wamuti6-Mar-10 23:58 
AnswerRe: Assembling bytes to an image Pin
DX Roster7-Mar-10 20:17
DX Roster7-Mar-10 20:17 
QuestionCreating Custom Encoding Pin
Xmen Real 6-Mar-10 19:08
professional Xmen Real 6-Mar-10 19:08 
AnswerRe: Creating Custom Encoding Pin
OriginalGriff6-Mar-10 21:45
mveOriginalGriff6-Mar-10 21:45 
GeneralRe: Creating Custom Encoding Pin
Xmen Real 6-Mar-10 22:32
professional Xmen Real 6-Mar-10 22:32 
GeneralRe: Creating Custom Encoding Pin
harold aptroot6-Mar-10 22:38
harold aptroot6-Mar-10 22:38 
GeneralRe: Creating Custom Encoding Pin
Xmen Real 6-Mar-10 22:41
professional Xmen Real 6-Mar-10 22:41 
GeneralRe: Creating Custom Encoding Pin
harold aptroot6-Mar-10 22:53
harold aptroot6-Mar-10 22:53 
GeneralRe: Creating Custom Encoding Pin
OriginalGriff6-Mar-10 22:47
mveOriginalGriff6-Mar-10 22:47 
GeneralRe: Creating Custom Encoding Pin
Xmen Real 6-Mar-10 22:51
professional Xmen Real 6-Mar-10 22:51 
GeneralRe: Creating Custom Encoding Pin
harold aptroot6-Mar-10 22:54
harold aptroot6-Mar-10 22:54 
GeneralRe: Creating Custom Encoding Pin
Xmen Real 6-Mar-10 22:57
professional Xmen Real 6-Mar-10 22:57 
GeneralRe: Creating Custom Encoding Pin
harold aptroot6-Mar-10 22:59
harold aptroot6-Mar-10 22:59 

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.