[Mono-bugs] [Bug 80558][Wis] Changed - System.Drawing.Image serialization
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 16:02:10 EST 2007
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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80558
--- shadow/80558 2007-01-19 11:05:10.000000000 -0500
+++ shadow/80558.tmp.18609 2007-01-30 16:02:10.000000000 -0500
@@ -1,12 +1,12 @@
Bug#: 80558
Product: Mono: Class Libraries
Version: 1.2
OS: All
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
Severity: Unknown
Priority: Wishlist
Component: Sys.Drawing.
AssignedTo: mono-bugs at ximian.com
ReportedBy: thisaddressisnotmine+ximian at td.selfip.net
@@ -42,6 +42,43 @@
</MyImage>
Steps to reproduce the problem:
1. Create web service with method returning System.Drawing.Image
2. Cal this method.
+
+------- Additional Comments From sebastien at ximian.com 2007-01-30 16:02 -------
+I tried to make a unit test where an image is serialized with
+XmlSerializer. However it doesn't work on MS, no data get's in the
+XML. This is what I get...
+
+<?xml version="1.0" encoding="utf-8"?>
+<Bitmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <Palette />
+</Bitmap>
+
+
+The Deserialize call throws an exception when setting the (empty) palette.
+
+System.InvalidOperationException: There is an error in XML document
+(4, 3). ---> System.ArgumentException: Parameter is not valid.
+ at System.Drawing.Image._SetColorPalette(ColorPalette palette)
+ at System.Drawing.Image.set_Palette(ColorPalette value)
+ at
+Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBitmap.Read5_Bitmap(Boolean
+isNullable, Boolean checkType)
+ at
+Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBitmap.Read6_Bitmap()
+ --- End of inner exception stack trace ---
+ at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
+xmlReader, String encodingStyle, XmlDeserializationEvents events)
+ at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
+xmlReader, String encodingStyle)
+ at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader
+textReader)
+ at MonoTests.System.Drawing.TestBitmap.XmlDeserialize(Stream s)
+
+
+If this works on MS for you can you please provide a full test case,
+including the bitmap you're returning.
+Thanks
More information about the mono-bugs
mailing list