P
Pierre-Benoit
Hi there,
I've a strange problem with ado.net and an Access db. I need to create
a little C# app that take the content of "ole object" field and then
save it into a file.
The problem is that when I do the following
Byte[] byteBLOBData = new Byte[0];
byteBLOBData = (Byte[])(ds.Tables["tblRefAlbum"].Rows[0]["photo"]);
I get the exact double of the original size! and if I save this array
byte to a file I'll get my file with every two byte set to 00.
The result is, of course, not an image. I've tryed to manipulate my
array of byte to strip every two bytes but the result is an visible
image but not the correct image (it's a scrambled image that appears).
Please help, I really need to do this exportation of picture in .net
with the access db.
Thanks a lot for people whom can help me.
I've a strange problem with ado.net and an Access db. I need to create
a little C# app that take the content of "ole object" field and then
save it into a file.
The problem is that when I do the following
Byte[] byteBLOBData = new Byte[0];
byteBLOBData = (Byte[])(ds.Tables["tblRefAlbum"].Rows[0]["photo"]);
I get the exact double of the original size! and if I save this array
byte to a file I'll get my file with every two byte set to 00.
The result is, of course, not an image. I've tryed to manipulate my
array of byte to strip every two bytes but the result is an visible
image but not the correct image (it's a scrambled image that appears).
Please help, I really need to do this exportation of picture in .net
with the access db.
Thanks a lot for people whom can help me.