EldoS | Feel safer!

Software components for data protection, secure storage and transfer

read and write with streams that don't support seek

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#29395
Posted: 05/08/2014 03:18:03
by pnina (Standard support level)
Joined: 11/20/2013
Posts: 36

We are using the VDisk sample for C# as a base for our system.
The stream that we get for our virtual files does not support seek operations, and therefore the read and write functions don't work.
Is there a way to perform read/write with streams that do not support seek?
#29396
Posted: 05/08/2014 03:22:01
by Eugene Mayevski (EldoS Corp.)

The only way is to cache the data somewhere.

Windows filesystem mechanism assumes that all files are freely seekable, and even size retrieval is done by using Seek function.


Sincerely yours
Eugene Mayevski
#29397
Posted: 05/08/2014 03:37:23
by pnina (Standard support level)
Joined: 11/20/2013
Posts: 36

Data is already on remote site - to cache it we need first to download it to local desktop client.
The problem is that windows copy progress-bar will not respond well to large files, it looks like it hangs until local cache is done downloading the data.

However, we did some testing with NTFS that supports seek and the result was very good, what we needed.

How can we make this work with non-seekable streams ?
There must be other solution then caching the data?
#29398
Posted: 05/08/2014 03:40:18
by Eugene Mayevski (EldoS Corp.)

Some problems have no suitable solutions. As said, Windows was not designed for non-seekable streams.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1060 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!