[Mono-bugs] [Bug 73223][Wis] Changed - Gdk.Pixbuf(byte[],bool) ctor cannot load a gif image.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 3 Mar 2005 21:20:53 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=73223

--- shadow/73223	2005-03-03 20:23:48.000000000 -0500
+++ shadow/73223.tmp.1013	2005-03-03 21:20:53.000000000 -0500
@@ -1,23 +1,23 @@
 Bug#: 73223
-Product: Mono: Class Libraries
-Version: 1.1
+Product: gtk#
+Version: 1.9
 OS: unknown
 OS Details: 
 Status: ASSIGNED   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
-Component: System
+Component: general
 AssignedTo: gonzalo@ximian.com                            
 ReportedBy: kim@gnome.dk               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: System.Net.Webclient.DownloadData gives wrong image header in Gdk.Pixbuf(byte[],bool) ctor
+Summary: Gdk.Pixbuf(byte[],bool) ctor cannot load a gif image.
 
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem:
 
 When trying to download an image with System.Net.webclient.DownloadData and
@@ -57,6 +57,22 @@
 
 Unhandled Exception: GLib.GException: Image header corrupt
 in <0x00075> Gdk.Pixbuf:.ctor (System.Byte[] data, Boolean copy_pixels)
 in <0x0007f> Test:Main ()
 
 
+
+------- Additional Comments From gonzalo@ximian.com  2005-03-03 21:20 -------
+Add the following code after the call to DownloadData:
+------
+using (Stream output = File.OpenWrite ("ximian-logo.gif"))
+                        output.Write (myDataBuffer, 0,
+myDataBuffer.Length);
+
+----
+
+That will save ximian-logo.gif. Use any program to check that it can
+view the file. Works. 
+And the definitive test, wget the same file and compare them. They are
+the same.
+
+So the bug belongs to gtk#