---
title: "How to insert and retrive images on MSACCESS using java"  
description: "How to insert and retrive images on MSACCESS using java"  
author: "Amit Singh"  
published: 2011-05-05  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/833/how-to-insert-and-retrive-images-on-msaccess-using-java  
category: "ms access"  
tags: ["ms access"]  
reading_time: 1 minute  

---

# How to insert and retrive images on MSACCESS using java

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.

## Answers

### Answer by Amit Singh

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.


---

Original Source: https://www.mindstick.com/interview/833/how-to-insert-and-retrive-images-on-msaccess-using-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
