diff --git a/Test/Applications/Base64/Form1.Designer.cs b/Test/Applications/Base64/Form1.Designer.cs index d2e8f35aad..cd7845289a 100644 --- a/Test/Applications/Base64/Form1.Designer.cs +++ b/Test/Applications/Base64/Form1.Designer.cs @@ -32,6 +32,7 @@ this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.button2 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 @@ -63,11 +64,22 @@ // this.openFileDialog1.FileName = "openFileDialog1"; // + // button2 + // + this.button2.Location = new System.Drawing.Point(682, 458); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 3; + this.button2.Text = "button2"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(769, 464); + this.ClientSize = new System.Drawing.Size(769, 490); + this.Controls.Add(this.button2); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Controls.Add(this.button1); @@ -84,6 +96,7 @@ private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.Button button2; } } diff --git a/Test/Applications/Base64/Form1.cs b/Test/Applications/Base64/Form1.cs index 0f579d457a..18f103048f 100644 --- a/Test/Applications/Base64/Form1.cs +++ b/Test/Applications/Base64/Form1.cs @@ -121,5 +121,13 @@ namespace WindowsFormsApplication1 textBox2.Text = Convert.ToBase64String(bytes, Base64FormattingOptions.None); } } + + private void button2_Click(object sender, EventArgs e) + { + byte[] resBinary = Convert.FromBase64String(textBox2.Text); + StreamWriter oW = new StreamWriter("E:\\123.bin"); + oW.BaseStream.Write(resBinary, 0, resBinary.Length); + oW.Close(); + } } } diff --git a/Test/Applications/Base64/bin/Debug/Base64.exe b/Test/Applications/Base64/bin/Debug/Base64.exe index db5eaaf14f..c36aa0be6e 100644 Binary files a/Test/Applications/Base64/bin/Debug/Base64.exe and b/Test/Applications/Base64/bin/Debug/Base64.exe differ diff --git a/Test/Applications/Base64/bin/Debug/Base64.pdb b/Test/Applications/Base64/bin/Debug/Base64.pdb index c1e501a5f1..a90eaf6b5a 100644 Binary files a/Test/Applications/Base64/bin/Debug/Base64.pdb and b/Test/Applications/Base64/bin/Debug/Base64.pdb differ