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

C#

 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 0:30
Vivek Vijayan8-Jul-09 0:30 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 0:33
professional dan!sh 8-Jul-09 0:33 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 0:55
Vivek Vijayan8-Jul-09 0:55 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 1:12
Vivek Vijayan8-Jul-09 1:12 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 2:42
professional dan!sh 8-Jul-09 2:42 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:26
Vivek Vijayan8-Jul-09 2:26 
AnswerRe: byte array to image Pin
harold aptroot8-Jul-09 1:37
harold aptroot8-Jul-09 1:37 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:25
Vivek Vijayan8-Jul-09 2:25 
sry i din undrstd ur question


i m giving the code code and i m getting just "Exception".i cant understand wht exception is it.sometimes i m getting outofmemory exception.the line that throws exception is
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read));



this line raises another exception too "the process cannot access the files \Program Files\\syswifi\\pic\\screen.jpg because it is used been used by another process"






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);
fs.Close();
ms.Flush();
ms.Close();
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read)) ;
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message);
}


how can can i load an image in to a picture box
in mobile application

This code was posted by me...

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 
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 

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.