It's easy to open a connection to a remote asset using URL.openStream() which returns an InputStream. What about random access?
相关问题
- Angular RxJS mergeMap types
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
HTTP 1.1 allows retrieval of parts of a resource through use of Byte Ranges, but...
True random access is not possible via http. You can simulate it though by passing a starting point as a paramater and return a stream that represents data from that position onwards.
For example this is how progressive HTTP download works (e.g. YouTube video seek).