With the development of Internet of things, its application is more and more close to people's life. As the main sensor networks of the Internet of things base layer, wireless sensor networks (WSN) provide users with a large number of useful real-time sensing data. While the user wants to enjoy the services provided by wireless sensor, the WSN must to access the Internet network in some way. This paper presents a new framework based on cloud gateway, which realized the storage of mass data and reduced the data storage pressure of WSN. At the same time providing more efficient service for the user with make full use of cloud platform computing ability, storage ability and the ability of information service.