public function storePermanentImage (Image $image)
    {
        $json = $this->storeGenericMedia(MediaType::IMAGE, true, $image);

        return (new Uploaded\Image($json->media_id))->withURL($json->url);
    }
public function storePermanentImage (Image $image)
    {
        $json = $this->storeGenericMedia(MediaType::IMAGE, true, $image);

        return (new Uploaded\Image($json->media_id))->withURL($json->url);
    }
public function storePermanentImage ( Image $ image ) { $ json = $ this -> storeGenericMedia ( MediaType :: IMAGE , true , $ image ) ; return ( new Uploaded \ Image ( $ json -> media_id ) ) -> withURL ( $ json -> url ) ; }
Uploads an image for permanent storage on the WeChat servers.

@param Image $image

@return Uploaded\Image
Uploads an image for permanent storage on the WeChat servers .