
Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
> > Then in another app, I load them back into a new empty dataset using
> > DataSet.readXmlSchema and DataSet.ReadXml. The schema is read first.
> > Now the problem is that when this is read back later, nothing gets
> > decoded.
> > Instead of a copy of the original bytes I put in, I get a larger array
> > with the Base64 representation.
> What is the column.DataType of the byte[] column after you have called
> ReadXmlSchema?
It's System.Byte[]
My original post was a little unclear about something when I re-read it
('one of the columns' wasn't accurate), so I'll fix that here: there are
two columns, each containing a byte array. The problem occurs for both.
Lucvdv - 18 Dec 2007 12:23 GMT
> > > Then in another app, I load them back into a new empty dataset using
> > > DataSet.readXmlSchema and DataSet.ReadXml. The schema is read first.
[quoted text clipped - 12 lines]
> ('one of the columns' wasn't accurate), so I'll fix that here: there are
> two columns, each containing a byte array. The problem occurs for both.
And now it gets really strange: I closed Visual Studio for my lunch break,
reopen it when I get back, and the problem is gone.
I now get the correct data. Where I got an array of 15 bytes containing
what looked like the BASE64 data plus a few extra before, I now get an
array of 8 bytes containing the correct data.
Tony Gravagno - 18 Dec 2007 19:41 GMT
>And now it gets really strange: I closed Visual Studio for my lunch break,
>reopen it when I get back, and the problem is gone.
Which part is really strange - the part where you get a lunch break,
the part that you come back after lunch, or the part about the problem
being gone?
Tony Gravagno
Nebula Research and Development
Latest blog:
Stumped again - Strongly Typed Datasets from XML Schema
remove.munge.pleaseNebula-RnD.com/blog