0

When i compare my vb.net project with my previous version i can see some changes in resx file.But i am not able to understand it.I have not added any new resource actually. but still i can see some changes. I saw this article where i got some basics about it.That is data and value tag incase of any new resource is added.But in my project i can see some changes like below.

new

 <data name="PicForward.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
        <value>
 Qk1SDAAAAAAAADYAAAAoAAAAIQAAAB8AAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAxOz4xOz4
        xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4
        xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4EcTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs
        +MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs
        +MTs+MTs+MTs+MTs+BHE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE            
    </value>
      </data>

old

    <data name="PicForward.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
        <value>
Qk1SDAAAAAAAADYAAAAoAAAAIQAAAB8AAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAxOz4xOz4
        xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4
        xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4xOz4EcTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs
        +MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs+MTs
        +MTs+MTs+MTs+MTs+ADE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE7PjE            
    </value>
      </data>

In above case in between the value tag there was so many characters like this.I have skipped it as it is lengthy. But i cant understand why this value tag changed(only small changes i have observed).I am creating project using visual studio.I am not directly editing anything in resx file. So please clear my doubts related to it.

4

1 回答 1

0

进行此更改的原因是因为您正在处理将图像保存(到 .resx 文件)作为 base 64 字符串。

看到 mimetype -

mimetype="application/x-microsoft.net.object.bytearray.base64"

<data name="PicForward.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

因此,当图像被保存或更改时 - Base64 需要重新写入 .resx 文件,因此它会更改。

于 2013-08-01T09:28:54.707 回答