Java fileinputstream using with url

前端 未结 2 359
失恋的感觉
失恋的感觉 2020-12-16 12:45

How to input in the fileinputstream, a file to url?

I enter the url in the Fileinputstream, but the output of the URL is wrong, because the link slashes are turned

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 13:06

    FileInputStream can be initialized with either a path name or a file object.

    If supplying a path name you should only need to convert any back slashes \ to double backslashes \

提交回复
热议问题