Click here to Skip to main content
15,394,131 members
Home / Discussions / C#
   

C#

 
AnswerRe: Audio vedio caputing Pin
Nooner11-Jun-09 11:34
MemberNooner11-Jun-09 11:34 
GeneralRe: Audio vedio caputing Pin
Mycroft Holmes11-Jun-09 14:11
professionalMycroft Holmes11-Jun-09 14:11 
Questionabout ArraySegment<> Pin
Seraph_summer11-Jun-09 6:48
MemberSeraph_summer11-Jun-09 6:48 
AnswerRe: about ArraySegment<> Pin
PIEBALDconsult11-Jun-09 8:26
professionalPIEBALDconsult11-Jun-09 8:26 
AnswerRe: about ArraySegment<> Pin
Henry Minute11-Jun-09 9:00
MemberHenry Minute11-Jun-09 9:00 
Questionblob data from mysql Pin
benjamin yap11-Jun-09 6:32
Memberbenjamin yap11-Jun-09 6:32 
AnswerRe: blob data from mysql Pin
0x3c011-Jun-09 6:37
Member0x3c011-Jun-09 6:37 
GeneralRe: blob data from mysql [modified] Pin
benjamin yap11-Jun-09 7:03
Memberbenjamin yap11-Jun-09 7:03 
I dont quite know how to do that, but this is the code i have

        private void getMainCommImages()
{
    Byte[] image = null;
    MySqlDataReader reader = db.getMainCommImages();

    while (reader.Read())
    {
        image = new Byte[(reader.GetBytes(0,0,null,0,int.MaxValue))];
        reader.GetBytes(0, 0, image, 0, image.Length);
        reader.Close();
        db.Close();
    }

}

public MySqlDataReader getMainCommImages()
{
    Connect();
    command = conn.CreateCommand();
    command.CommandText = "SELECT image from images";
    reader = command.ExecuteReader();

    return reader;
}


after getting the image in bytes. how do i display out to my button

modified on Thursday, June 11, 2009 1:29 PM

GeneralRe: blob data from mysql Pin
0x3c011-Jun-09 7:43
Member0x3c011-Jun-09 7:43 
GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 7:46
Memberbenjamin yap11-Jun-09 7:46 
GeneralRe: blob data from mysql Pin
0x3c011-Jun-09 8:17
Member0x3c011-Jun-09 8:17 
GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 8:24
Memberbenjamin yap11-Jun-09 8:24 
GeneralRe: blob data from mysql Pin
benjamin yap11-Jun-09 8:41
Memberbenjamin yap11-Jun-09 8:41 
QuestionC #define to C# constant converstion tool Pin
mbender11-Jun-09 4:44
Membermbender11-Jun-09 4:44 
AnswerRe: C #define to C# constant converstion tool Pin
saurabh sahay11-Jun-09 5:24
Membersaurabh sahay11-Jun-09 5:24 
AnswerRe: C #define to C# constant converstion tool Pin
PIEBALDconsult11-Jun-09 6:22
professionalPIEBALDconsult11-Jun-09 6:22 
GeneralRe: C #define to C# constant converstion tool Pin
mbender11-Jun-09 7:07
Membermbender11-Jun-09 7:07 
GeneralRe: C #define to C# constant converstion tool Pin
PIEBALDconsult11-Jun-09 7:33
professionalPIEBALDconsult11-Jun-09 7:33 
GeneralRe: C #define to C# constant converstion tool Pin
mbender11-Jun-09 7:40
Membermbender11-Jun-09 7:40 
GeneralRe: C #define to C# constant converstion tool [modified] Pin
PIEBALDconsult11-Jun-09 8:24
professionalPIEBALDconsult11-Jun-09 8:24 
GeneralRe: C #define to C# constant converstion tool Pin
mbender16-Jun-09 7:02
Membermbender16-Jun-09 7:02 
AnswerRe: C #define to C# constant converstion tool Pin
Rob Philpott11-Jun-09 6:27
MemberRob Philpott11-Jun-09 6:27 
QuestionMultiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 4:44
MemberMustafa Ismail Mustafa11-Jun-09 4:44 
AnswerRe: Multiple Default buttons on a form dependant on the situation Pin
0x3c011-Jun-09 4:55
Member0x3c011-Jun-09 4:55 
GeneralRe: Multiple Default buttons on a form dependant on the situation Pin
Mustafa Ismail Mustafa11-Jun-09 6:13
MemberMustafa Ismail Mustafa11-Jun-09 6:13 

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.