can i transfer pictures through sockets using c++? how can i do it if its posible.

It's easier with a library that abstracts the complicated socket stuff.

Right now I would probably consider using boost for it (personally).

#include <boost/asio.hpp>

void TransferData( std::string data )
   boost::asio::ip::tcp::iostream con("server","9001");//or protocol, like "HTTP"
   if( !con )
      ;//Connecting failed or something.
      con << "Ehlo their mate. Have sum datums." << data << std::flush;

You can find an installer for boost here: www.boostpro.com
Then in your project settings -> include directories,
add the main boost folder to the include directories
and the "lib" folder to the lib directories.