0

I have Stores an Image in Ms access Database and datatype of column is OLE OBJECT. But i am Unable to retrieve the Image from database. Please help..

When i try to Open Image its show Error

Unknown File Format or file not found.

3
  • 2
    What have you tried? Commented Jun 26, 2012 at 9:03
  • i m reading the image stored in bytes and trying to save it on disk. File is created but it shows error. Commented Jun 26, 2012 at 9:22
  • 2
    Ok. What error? Show us your code! Show us the error message! (edit your question to include those things). Commented Jun 26, 2012 at 9:24

1 Answer 1

1

First thing we need to do is set the column type as OLE Object. While saving the data into the column of type OLE Object, save the data as byte array, while retrieving the image from the column read the value, put the value into byte array and then convert the byte array to image type and display the same. This is very simple.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.