EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElZipWriter item names with only first letter

Posted: 03/21/2013 08:05:49
by David Eršil (Standard support level)
Joined: 01/15/2013
Posts: 38

I am working with TElZipWriter and trying to create a new archive containing one file. The whole process seems to work fine, except the name of the file contained inside the archive always has just one letter from the name I set. My code (Windows Store App) is based on your examples, but I still can't manage to overcome this issue.

string fileName = "input.jpg";

StorageFile theFile = await ApplicationData.Current.LocalFolder.CreateFileAsync(fileName, CreationCollisionOption.OpenIfExists);
Stream F = (await theFile.OpenAsync(FileAccessMode.Read)).AsStream();

StorageFile zip = await ApplicationData.Current.LocalFolder.CreateFileAsync("archive.zip", CreationCollisionOption.OpenIfExists);
Stream Z = (await zip.OpenAsync(FileAccessMode.ReadWrite)).AsStream();

TElZipWriter zipWriter = new TElZipWriter();
zipWriter.CompressionAlgorithm = SBZipUtils.Unit.ZIP_COMPRESSION_DEFLATE;

F.Position = 0;
TElZipArchiveDirectoryEntry de = zipWriter.Add(F);
de.FileName = fileName;


await Z.FlushAsync();

This will result in "archive.zip" containing file "i".

I would much appreciate any help with this.
Thanks in advance.
Posted: 03/21/2013 08:18:57
by Ken Ivanov (Team)


Thank you for reporting the problem. We will have a look into the code and get back to you as soon as possible.
Posted: 03/25/2013 06:54:46
by David Eršil (Standard support level)
Joined: 01/15/2013
Posts: 38

I would like to say that after updating my SSB binaries from 10.0.230 to 10.0.233 this problem no longer persists :)

Let me apologize for any inconvenience caused.
Thank you anyway.



Topic viewed 535 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!