Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-RC1
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
.NET encodes base64 according to specs: line feed after 76 bytes.
When we upload the contents of a file as a base64Binary byte[] with a .NET client to our XFire web service, the size and contents of the byte array that the method on the service receives do not match. It seems XFire has problems decoding base64Binary data that has a fixed line length of 76 characters. Testing with other clients that sent the data as one line (chunked or not chunked) did work.
According to the XML Schema Datatypes spec (chapter 3.2.16) the line-length of 76 is not mandatory and must not be enforced. This suggests that a line-length of 76 characters is allowed, however.
Attached is the request done by the .Net client (including HTTP headers and SOAP Envelope). Using a base64 decoding tool you can convert the data to a .gif file.
Erm, actually the first attachment just works. It seems the service only has trouble decoding the file when the size is larger than a certain (unknown) size.