Now that you have your RGB data array, to create your texture is simple, first, generate ogl texture:
GLuint texture;
glGenTextures(1, &texture);
Bind texture
glBindTexture(GL_TEXTURE_2D, texture);
you can add an image filter:
//Create Linear Filtered Texture
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
Now build your data array into ogl texture
gluBuild2DMipmaps (GL_TEXTURE_2D, 3, TEX_Width, TEX_Height, GL_RGB, GL_UNSIGNED_BYTE, your_image_array_buffer);