Click here to Skip to main content
15,887,928 members
Home / Discussions / C#
   

C#

 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:25
Vivek Vijayan8-Jul-09 2:25 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 2:41
harold aptroot8-Jul-09 2:41 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:08
Vivek Vijayan8-Jul-09 4:08 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:20
harold aptroot8-Jul-09 4:20 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:27
Vivek Vijayan8-Jul-09 4:27 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:32
harold aptroot8-Jul-09 4:32 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:01
Vivek Vijayan8-Jul-09 5:01 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:09
Vivek Vijayan8-Jul-09 5:09 
and the receiving part code is

byte[] data = new byte[1024];
data=receivefile();
System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
try
{
FileStream fs = new FileStream("\\Program Files\\syswifi\\pic\\screen.Bmp", FileMode.Create);
ms.WriteTo(fs);

ms.Flush();
fs.Close();
ms.Close();

i m getting "exception in this code"
pictureBox1.Image = new Bitmap("\\Program Files\\pic\\screen.Bmp");
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message.ToString());
}

i getting "Exception" in the last line
it is not telling what is the exception its displaying just "Exception"

This code was posted by me...

GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:13
Vivek Vijayan8-Jul-09 5:13 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 5:15
harold aptroot8-Jul-09 5:15 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:23
Vivek Vijayan8-Jul-09 5:23 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 5:26
harold aptroot8-Jul-09 5:26 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:49
Vivek Vijayan8-Jul-09 5:49 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 6:01
harold aptroot8-Jul-09 6:01 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:09
Vivek Vijayan8-Jul-09 6:09 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 6:20
harold aptroot8-Jul-09 6:20 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:32
Vivek Vijayan8-Jul-09 6:32 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 6:49
Vivek Vijayan8-Jul-09 6:49 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 7:00
Vivek Vijayan8-Jul-09 7:00 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 7:07
harold aptroot8-Jul-09 7:07 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 8:16
Vivek Vijayan8-Jul-09 8:16 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 8:42
harold aptroot8-Jul-09 8:42 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 10:07
Vivek Vijayan8-Jul-09 10:07 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 18:34
Vivek Vijayan8-Jul-09 18:34 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 3:18
harold aptroot8-Jul-09 3:18 

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.