469,962 Members | 2,794 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

Retrieve Images stored in OLE Objects to ASP page

We are storing images into the SQL database with the column type of
"Image" using Access and it is storing all of the images as "OLE
Object". I am trying to spit out the binary data of the Image part of
the OLE Object to an asp .net page so I can view it as a jpeg image.

I have found many tutorials for setting the response.contenttype and
then response.binarywrite the byte[] of binary data, but the problem is
that the binary data isn't just the image, but rather an OLE Object
which is the image plus a bunch of metadata. I need to somehow decode
the OLE Object to extract JUST the jpeg image from it for outputting as
a byte[] array.

I am tearing my hair out with this problem and greatly appreciate any
help. Thanks!

Dec 22 '06 #1
1 4476
http://www.planet-source-code.com/vb...txtCodeId=6108


<za******@gmail.comwrote in message news:11*********************@f1g2000cwa.googlegrou ps.com...
We are storing images into the SQL database with the column type of
"Image" using Access and it is storing all of the images as "OLE
Object". I am trying to spit out the binary data of the Image part of
the OLE Object to an asp .net page so I can view it as a jpeg image.

I have found many tutorials for setting the response.contenttype and
then response.binarywrite the byte[] of binary data, but the problem is
that the binary data isn't just the image, but rather an OLE Object
which is the image plus a bunch of metadata. I need to somehow decode
the OLE Object to extract JUST the jpeg image from it for outputting as
a byte[] array.

I am tearing my hair out with this problem and greatly appreciate any
help. Thanks!

Dec 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Vinay | last post: by
61 posts views Thread by phil-news-nospam | last post: by
3 posts views Thread by wardemon | last post: by
7 posts views Thread by Keith Hughitt | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.