JSON response is of Filename , Content:
{
“Filename” : “abc.pdf”
“Content” : “abejmkkjshkduhjkskwbkjejjkhugaib”
}
where
Filename : String
Content : Byte[]
How to write Byte[]
in my XSD schema ?
JSON response is of Filename , Content:
{
“Filename” : “abc.pdf”
“Content” : “abejmkkjshkduhjkskwbkjejjkhugaib”
}
where
Filename : String
Content : Byte[]
How to write Byte[]
in my XSD schema ?
You cannot directly store raw bytes in XML files, but you can encode them in Base64 and store the encoding. For Base64-encoded data, use base64Binary in XSD.
Be sure that your data is actually Base64, because xs:base64
is not the same as xs:string
.