Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 22nd, 2006, 12:05 AM
zachhale@gmail.com
Guest
 
Posts: n/a
Default 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!

  #2  
Old December 22nd, 2006, 05:45 PM
Jon Paal
Guest
 
Posts: n/a
Default Re: Retrieve Images stored in OLE Objects to ASP page

http://www.planet-source-code.com/vb...txtCodeId=6108




<zachhale@gmail.comwrote in message news:1166745327.912287.15440@f1g2000cwa.googlegrou ps.com...
Quote:
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!
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles