[Mono-bugs] [Bug 53104][Cri] New - Web Method and Invalid Format Exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jan 2004 01:49:48 -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 yraykar@hotmail.com.

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

--- shadow/53104	2004-01-20 01:49:48.000000000 -0500
+++ shadow/53104.tmp.16607	2004-01-20 01:49:48.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 53104
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: Red Hat Linux v9.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: Sys.Data.SqlClient
+AssignedTo: rodrigo@ximian.com                            
+ReportedBy: yraykar@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Web Method and Invalid Format Exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When a web method of web service is called if the webmethod returns a byte
+array to the client, It throws an Invalid format exception. This is because
+the byte array will be converted to base64 string on a Microsoft webservice
+and hence throws an invalid format exception on mono client.
+
+
+Steps to reproduce the problem:
+1. Create a webservice which has a method that returns the byte array. Try
+to access the web service. The value is returned from the web method. But
+throws an exception on the client side.
+2. 
+3. 
+
+Actual Results:
+Throws an invalid format exception
+
+Expected Results:
+Should convert the base 64 string to byte array and should work the way it
+works on .NET framework
+
+How often does this happen? 
+Always
+
+Additional Information:
+This is happening because the .NET Framework converts the base64 string
+returned by the service to byte arry internally if the return datatype of
+the web method is byte array