Jump to content

Alternate file streams and Paint.NET save.


Lomilar

Recommended Posts

Howdy, this is kind of a question of compatibility between paint.NET edited files and alternate file streams that may be lying within the file.

So, a google search can give you a bunch of hits for alternate file streams, but I am making a backup/revision piece of software that utilizes alternate file streams. The issue I am having is that when I open a file in Paint.NET and save it, all alternate file streams are stripped. From what I can tell though, the file is not being deleted and recreated (it retains its created date/time), but nonetheless those streams are being stripped.

Is there anything actively doing this (to, for instance, remove zone information from files)? I'm definitely willing to assist with this.

Link to comment
Share on other sites

The alternate file streams are not loaded, nor is there any attempt to preserve them. When you save, it's effectively writing a brand new file. The fact that the creation time stays the same is a file system feature in Windows called "tunneling": http://blogs.msdn.com/oldnewthing/archi ... 39261.aspx

This is not a bug, nor will it be changed.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...