如何在Java中将JSON数据转换为图像[已关闭]

qv7cva1a  于 2022-11-26  发布在  Java
关注(0)|答案(2)|浏览(244)

已关闭。此问题需要details or clarity。当前不接受答案。
**想要改进此问题吗?**通过editing this post添加详细信息并阐明问题。

2天前关闭。
Improve this question
我在HTTP请求的响应上有一个json文件,并且有一个图像,其值类似

c04n

你能帮我一下吗,怎么转换,这是json resp。

{
            "app_temp": -3.8,
            "azimuth": 70.12,
            "clouds": 88,
            "datetime": "2022-11-20:01",
            "dewpt": -5.5,
            "dhi": 0,
            "dni": 0,
            "elev_angle": -41.23,
            "ghi": 0,
            "h_angle": null,
            "pod": "n",
            "precip": 0,
            "pres": 999.6961,
            "revision_status": "interim",
            "rh": 86,
            "slp": 1022.0282,
            "snow": 0,
            "solar_rad": 0,
            "temp": -3.5,
            "timestamp_local": "2022-11-20T03:00:00",
            "timestamp_utc": "2022-11-20T01:00:00",
            "ts": 1668906000,
            "uv": 0,
            "vis": 16,
            "weather": {
                "code": 804,
                "icon": "c04n",
                "description": "Overcast clouds"
            },
            "wind_dir": 153,
            "wind_gust_spd": 1,
            "wind_spd": 0.69
        }

我期待的i文件可能我可以稍后传递到一个视图与MVC

utugiqy6

utugiqy61#

在网上搜索“乌云图标c04n”,你会发现一整页都是weatherbit.io的图标。

5lhxktic

5lhxktic2#

图标应在此处找到https://raw.githubusercontent.com/ifpb/weather-forecast/master/icons/,只需在末尾添加[code].png
例如:https://raw.githubusercontent.com/ifpb/weather-forecast/master/icons/c04n.png

相关问题