Insert a picture in mdb file and then extract it

Posted on 2005-04-16
Medium Priority
Last Modified: 2010-05-18
My application uses an access db as its data source repository and handling the data is all right, but...
I want to have an option to insert a picture (e.g. jpeg file) into the database and then extract it and I've got no idea how to it.
I'm using different structures to hold extracted data, such as datasets, arraylists, and etc.

Would appreciate you suggestions and code snippets in particular.

Question by:Yurich
  • 3
LVL 22

Accepted Solution

Mohammed Nasman earned 800 total points
ID: 13800161

Assisted Solution

vinhnl earned 200 total points
ID: 13804556
LVL 21

Author Comment

ID: 13812512
hello guys and thanks for your answers.
i'll have a look at the links next couple of days.

LVL 21

Author Comment

ID: 13857986
thanks guys,
all links are useful, yet using vinh's way i had an exception saying that I've got no encoder when I'm trying to save image into the memory stream...

MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save( ms, pictureBox1.Image.RawFormat );
LVL 21

Author Comment

ID: 13858025
... but I can use:

pictureBox1.Image.Save( ms, System.Drawing.Imaging.ImageFormat.Jpeg );

and it'll work just fine

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question