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

C#

 
AnswerRe: Windows or WPF? Pin
V.31-Mar-14 21:41
professionalV.31-Mar-14 21:41 
GeneralRe: Windows or WPF? Pin
Shady George1-Apr-14 7:39
Shady George1-Apr-14 7:39 
QuestionDate conversion from YYMMDD to CCYYMMDD Pin
Member 1071407431-Mar-14 15:41
Member 1071407431-Mar-14 15:41 
AnswerRe: Date conversion from YYMMDD to CCYYMMDD Pin
Peter Leow31-Mar-14 16:21
professionalPeter Leow31-Mar-14 16:21 
GeneralRe: Date conversion from YYMMDD to CCYYMMDD Pin
Member 107140741-Apr-14 6:56
Member 107140741-Apr-14 6:56 
QuestionASP .Net issue with Oracle client Pin
Rock Star.31-Mar-14 4:05
Rock Star.31-Mar-14 4:05 
AnswerRe: ASP .Net issue with Oracle client Pin
Pete O'Hanlon31-Mar-14 4:14
mvePete O'Hanlon31-Mar-14 4:14 
QuestionL'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 2:35
remiki31-Mar-14 2:35 
Hello,
wanting to display a photo after it is recorded,
an error message is displayed me "L'Exception ArgumentException was not Operated"

C#
DataSet ds = new DataSet();
                    adpt.Fill(ds, "client");
                    int c = ds.Tables["client"].Rows.Count;
                    if (c > 0)
                    {
                        Byte[] btpht = new Byte[0];
                        btpht = (Byte[])(ds.Tables["client"].Rows[c - 1]["photo"]);
                        MemoryStream phtosssss = new MemoryStream(btpht);

                        try
                        {
                        //Here is the Message
                            pictureBox1.Image = Image.FromStream(phtosssss);//the error is appear here
                            
                        }
                        catch (Exception ex)
                        { MessageBox.Show(ex.Message); }
                    }

Soyons toujours à la disposition des autres

AnswerRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 3:12
mvePete O'Hanlon31-Mar-14 3:12 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 3:22
remiki31-Mar-14 3:22 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:04
mvePete O'Hanlon31-Mar-14 4:04 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:13
remiki31-Mar-14 4:13 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:15
mvePete O'Hanlon31-Mar-14 4:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Dave Kreskowiak31-Mar-14 4:19
mveDave Kreskowiak31-Mar-14 4:19 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:21
remiki31-Mar-14 4:21 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 4:38
mvePete O'Hanlon31-Mar-14 4:38 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 4:57
remiki31-Mar-14 4:57 
GeneralRe: L'Exception ArgumentException was not Operated PinPopular
Dave Kreskowiak31-Mar-14 4:48
mveDave Kreskowiak31-Mar-14 4:48 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:11
remiki31-Mar-14 5:11 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:15
remiki31-Mar-14 5:15 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 5:25
mvePete O'Hanlon31-Mar-14 5:25 
GeneralRe: L'Exception ArgumentException was not Operated Pin
remiki31-Mar-14 5:42
remiki31-Mar-14 5:42 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Pete O'Hanlon31-Mar-14 5:48
mvePete O'Hanlon31-Mar-14 5:48 
GeneralRe: L'Exception ArgumentException was not Operated Pin
Dave Kreskowiak31-Mar-14 17:47
mveDave Kreskowiak31-Mar-14 17:47 
GeneralRe: L'Exception ArgumentException was not Operated Pin
V.31-Mar-14 21:50
professionalV.31-Mar-14 21:50 

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.