I want to connect a webcam to a pendrive

Well the arduino has not a native USB master mode. Using some plugin board you can have a master USB but it interfaces throught SPI. SPI is far from the speed you need to handle a video stream.