输入流以查看 PDF - Kotlin

问题描述

我正在使用改造将输入流获取到远程 pdf,并且我已经从 url 获取输入流,但我不确定如何获取并将其内容显示为 PDF。

这是我目前所拥有的。

        body?.let { response ->
            val input = response.byteStream()
            
        } ?: run {} ```


and my service:


```   @FormUrlEncoded
    @Streaming
    @GET("/winner")
    fun winLossEvent(@Header("access")acc:String): Response<ResponseBody> ```

I do NOT need to download it necessarily but I need to show the input stream as a pdf. I'm using Kotlin and Retrofit. Please Help!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)