EldoS | Feel safer!

Software components for data protection, secure storage and transfer

read and write with streams that don't support seek

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?
Posted: 05/08/2014 03:22:01
by Eugene Mayevski (Team)

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
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?
Posted: 05/08/2014 03:40:18
by Eugene Mayevski (Team)

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

Sincerely yours
Eugene Mayevski



Topic viewed 1404 times

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


Back to top

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

Got it!