R
Roel
Hi,
I'm using the ASP.NET 2.0 profile system to keep an image of members of my
website "MyWebsite".
Initially, I've created the property in the web.config like:
<add name="Photo" serializeAs="Binary" type="System.Byte[]" >
Doing so, the binary data was saved in the "PropertyValuesBinary" column in
"aspnet_profile".
Now I need to query the "aspnet_profile" table from another website,
"MyOtherWebsite", and I want to read the image-data.
Therefore, I've altered the profile property like:
<add name="Photo" serializeAs="Binary" type="System.Byte[]"
customProviderData="image"/>
Now the binary data gets saved in a new column "Photo" in "aspnet_profile".
In "MyWebsite", the image data is correctly read by Profile.Photo.
In "MyOtherWebsite", the image data is queried by SQL (DataTable) but when I
read the column "Photo" from "aspnet_profile" the binary data is 28 bytes
longer than the binary data returned by Profile.Photo.
How do I get rid of those extra 28 bytes?
Kind Regards,
Roel
I'm using the ASP.NET 2.0 profile system to keep an image of members of my
website "MyWebsite".
Initially, I've created the property in the web.config like:
<add name="Photo" serializeAs="Binary" type="System.Byte[]" >
Doing so, the binary data was saved in the "PropertyValuesBinary" column in
"aspnet_profile".
Now I need to query the "aspnet_profile" table from another website,
"MyOtherWebsite", and I want to read the image-data.
Therefore, I've altered the profile property like:
<add name="Photo" serializeAs="Binary" type="System.Byte[]"
customProviderData="image"/>
Now the binary data gets saved in a new column "Photo" in "aspnet_profile".
In "MyWebsite", the image data is correctly read by Profile.Photo.
In "MyOtherWebsite", the image data is queried by SQL (DataTable) but when I
read the column "Photo" from "aspnet_profile" the binary data is 28 bytes
longer than the binary data returned by Profile.Photo.
How do I get rid of those extra 28 bytes?
Kind Regards,
Roel