Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Caching WebService request when offline Pin
Member 82761321-Sep-08 23:45
Member 82761321-Sep-08 23:45 
AnswerRe: Caching WebService request when offline Pin
Pete O'Hanlon21-Sep-08 22:39
mvePete O'Hanlon21-Sep-08 22:39 
GeneralRe: Caching WebService request when offline Pin
Member 82761321-Sep-08 23:57
Member 82761321-Sep-08 23:57 
QuestionServiceController start exception can't handle. Pin
CodingLover21-Sep-08 21:11
CodingLover21-Sep-08 21:11 
AnswerRe: ServiceController start exception can't handle. Pin
N a v a n e e t h21-Sep-08 22:28
N a v a n e e t h21-Sep-08 22:28 
GeneralRe: ServiceController start exception can't handle. Pin
CodingLover21-Sep-08 22:57
CodingLover21-Sep-08 22:57 
GeneralRe: ServiceController start exception can't handle. Pin
N a v a n e e t h21-Sep-08 23:03
N a v a n e e t h21-Sep-08 23:03 
QuestionMemory stream Pin
sirisha guttikonda21-Sep-08 21:05
sirisha guttikonda21-Sep-08 21:05 
Hi all ..

I'm trying to save an image from memory stream content.
but getting error like "Parameter is not valid." at newImage = System.Drawing.Image.FromStream(ms);

can you please suggest me.


Here is my code..


System.Drawing.Image newImage;

using (MemoryStream ms = new MemoryStream(photoByte, 0, photoByte.Length))
                    {

                        ms.Write(photoByte, 0, photoByte.Length);
                        
                        newImage = System.Drawing.Image.FromStream(ms);

                       
                        newImage.Save(strFileName);

                        img.Attributes.Add("src", strFileName);
                    }


Thanks

siri

AnswerRe: Memory stream Pin
Guffa21-Sep-08 21:20
Guffa21-Sep-08 21:20 
GeneralRe: Memory stream Pin
sirisha guttikonda21-Sep-08 21:27
sirisha guttikonda21-Sep-08 21:27 
AnswerRe: Memory stream Pin
N a v a n e e t h21-Sep-08 22:15
N a v a n e e t h21-Sep-08 22:15 
GeneralRe: Memory stream Pin
sirisha guttikonda22-Sep-08 1:09
sirisha guttikonda22-Sep-08 1:09 
QuestionHandle invalid values in DataGridView Pin
JuiceOntour21-Sep-08 20:39
JuiceOntour21-Sep-08 20:39 
AnswerRe: Handle invalid values in DataGridView Pin
nelsonpaixao22-Sep-08 14:16
nelsonpaixao22-Sep-08 14:16 
GeneralRe: Handle invalid values in DataGridView Pin
JuiceOntour22-Sep-08 20:04
JuiceOntour22-Sep-08 20:04 
GeneralRe: Handle invalid values in DataGridView Pin
nelsonpaixao23-Sep-08 14:39
nelsonpaixao23-Sep-08 14:39 
QuestionRead Cookie From Win App Pin
Meysam Mahfouzi21-Sep-08 20:28
Meysam Mahfouzi21-Sep-08 20:28 
AnswerRe: Read Cookie From Win App [modified] Pin
N a v a n e e t h21-Sep-08 22:18
N a v a n e e t h21-Sep-08 22:18 
GeneralRe: Read Cookie From Win App Pin
Meysam Mahfouzi22-Sep-08 0:02
Meysam Mahfouzi22-Sep-08 0:02 
QuestionSubmitting a form in the webBrowser control to the default Browser Pin
sarabjs21-Sep-08 20:12
sarabjs21-Sep-08 20:12 
Questionhow to set runtime marquee Pin
shihabul haq21-Sep-08 19:57
shihabul haq21-Sep-08 19:57 
AnswerRe: how to set runtime marquee Pin
Harvey Saayman21-Sep-08 20:19
Harvey Saayman21-Sep-08 20:19 
QuestionAbout signing Pin
Ashutosh_Bodake21-Sep-08 19:48
Ashutosh_Bodake21-Sep-08 19:48 
AnswerRe: About signing Pin
Ravi Bhavnani21-Sep-08 21:10
professionalRavi Bhavnani21-Sep-08 21:10 
AnswerRe: About signing Pin
Ajay.k_Singh21-Sep-08 23:06
Ajay.k_Singh21-Sep-08 23:06 

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.