hi,
i am create one application in which i have to use blob datatype.
but i declare property like this

private byte[] PAssignmentText1;  

public byte[] AssignmentText1
        {
            get
            {
                return PAssignmentText1;
            }
            set
            {
                PAssignmentText1 = value;
            }
        }

in mysql database AssignmentText1 have blob datatype
how to use blob datatype in .cs form

plj help me

Fetch a row from the database using DataReader and use GetBytes() method to retrieve an array of bytes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.