The embodiment of the invention discloses a data storage method, a device and a computer-readable storage medium, wherein protocol components corresponding to each shared protocol type are pre-established; the program code for communicating with the cloud is integrated into the protocol components. When the local device receives the data, according to the shared protocol type of the data, the corresponding target protocol component is called, and the communication link with the cloud can be established. Data is transferred to the cloud over this communication link. In the technical scheme, theprotocol component is establish beforehand, direct communication with the cloud can be realized, the context switch between the kernel state and the user state is reduced, the flow of data transmission is simplified, the time spent in data transmission is save, and the data processing performance of the local equipment is further improved.