I am using libaums
and I read file from USB. All files as a UsbFile
type. I want send my file to FTP. When I send FTP need use FileInputStream
ant thos have parameter File
. How can I convert?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
I think I answered this now a couple of times, at different places. There is simply no way to "convert" a
UsbFile
into ajava.io.File
. They are just completely different things. What you want to do is to use theUsbFileInputStream
. Your FTP library (whichever it is..) should be able to handle a genericInputStream
instead of onlyFileInputStreams
.