Excel sheet image reading issue

Ads
 

Excel sheet image reading issue

Hello every one.I?m trying to read images from an excel sheet using OleDbDataReader. My excel file has 6 columns of data, the first 5 are all text but the last is image. While I?m reading the record, It?s doing fine on the first 5 columns but return me with a ?blank? for the sixth column.

Here is my demonistration code:

OleDbConnection conn = null;

  try

  {

  conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data

Source="

           + excelFileName + ";Extended Properties='Excel 8.0;HDR =

YES;'");

  conn.Open();

  OleDbCommand cmd = new OleDbCommand("Select * From

[Sheet1$]", conn);

  OleDbDataReader dr = cmd.ExecuteReader();



  while (dr.Read())

  {

    dr.GetValue(5);  //------ Picture field comming blank



  }



  dr.Close();

  }

  finally

  {

  if (conn != null) conn.Close();





  }

Any one please help me. if get any solution plz mail me([email protected]) Thanks, Sanjeev

View Answers

Ads









Related Tutorials/Questions & Answers:
reading excel sheet in java
reading excel sheet in java  can anyone tell me a proper java code to read excel sheet using poi   Here is a java code that reads an excel file using POI api and display the data on the console. import java.io.
excel sheet reading and using that data - JSP-Servlet
excel sheet reading and using that data  i have to do a read a excel sheet file of a employee record and then i have to use a employee details to send mail to those employees how to do in jsp sir please help me sir.. Thanks
Advertisements
Reading the Date and time values from excel sheet
Reading the Date and time values from excel sheet  hi guys , iam trying to read excel sheet data using apache poi api .my problem is i cant read the date(dd/mm/yy) and time(hh:mm:ss) values concurrently from two different cells
Create Bar Graph from reading excel sheet in Java
Create Bar Graph from reading excel sheet in Java  I'm New to Java and I have to create a java program where I have to read data from multiple excel sheets say 4 sheets and sheet represents browsers (like FF, IE8, IE9 , chrome
Insert Image into Excel Sheet
Insert Image into Excel Sheet In this section, you will learn how to insert image into excel sheet using Apache POI. In the given below example, am image is insert into excel sheet at row 1 and at column 1. you can specify the top
uploading and reading the excel daa
uploading and reading the excel daa  uploading the excel file not getting the data of the excel
Reading an excel file into array
Reading an excel file into array  Hi, I'm trying to read in an excel file, search a column for containing key words (entered by a user) and then displaying the matching rows in a table. I'm fairly new to JavaScript. Can anyone
Reading excel via JSP
Reading excel via JSP   The problem is while reading cells values... the space between words and get full cell value? I am reading the value...;%=CareerStart%>></td> anyone please help me to resolve that space issue
insert excel sheet into mysql as a table
insert excel sheet into mysql as a table  sir, i want to import an excel sheet into mysql5.0 database as in the table format using tomcat 6.0 by jsp
update excel sheet using jsp::
update excel sheet using jsp::   Hi Sir,... I have a excel sheet for employee details "i retrieve particular datas from given excel sheet and display it into another excel sheet using jsp
read data from Excel sheet
read data from Excel sheet  Hi, How to read data from an excel sheet using JSP. Thank you
ModuleNotFoundError: No module named 'openerp-project-issue-sheet'
ModuleNotFoundError: No module named 'openerp-project-issue-sheet'  ...: No module named 'openerp-project-issue-sheet' How to remove the ModuleNotFoundError: No module named 'openerp-project-issue-sheet' error? Thanks
Convert the excel sheet data into oracle table through java or jsp
Convert the excel sheet data into oracle table through java or jsp  Hi Friends, Let me help this issue i am phasing Convert the excel sheet data into oracle table through java or jsp
Reading and querying an Excel file in JavaScript
Reading and querying an Excel file in JavaScript  Hi, I'm trying to read in an excel file, search a column for containing key words (entered by a user) and then displaying the matching rows in a table. I'm fairly new
how to display data in excel sheet?
how to display data in excel sheet?  According to the user Id,some... the button and to display the data in excel sheet... there will be a button called excel download,and if we click the button data
jsp with excel sheet data uploading into database
jsp with excel sheet data uploading into database  how to upload data in excel sheet with jsp into oracle 10g database
How to export data from html file to excel sheet by using java
How to export data from html file to excel sheet by using java   reading the data from Html file
ModuleNotFoundError: No module named 'reading-image'
ModuleNotFoundError: No module named 'reading-image'  Hi, My... 'reading-image' How to remove the ModuleNotFoundError: No module named 'reading-image' error? Thanks   Hi, In your python
Need to Remove Duplicate Records from Excel Sheet
Duplicate Records from Excel Sheet. I have one excel sheet having two fields (EmpNum, Rating) have to save in another excel sheet with unique empnum of latest... and to save only unique empnum with rating in another excel sheet
extract data from excel sheet to mysql
extract data from excel sheet to mysql  sir, i want to extract data from excel sheet and save the data in mysql5.0 database in the form of table
browse and submit the excel sheet into mysql as a table
browse and submit the excel sheet into mysql as a table  sir, i want to browse and after clicking a submit button, the data in the excel sheet should be stored in the mysql5.0 as a table
reading data from excel file and plotting graph
reading data from excel file and plotting graph  I am doing a project using NetBeans in which i have to take input an excel file and then using the data in excel file, i have to plot graphs based on CELL ID selected. please help
how to import excel sheet into mysql database and save it as a table in database
how to import excel sheet into mysql database and save it as a table in database  sir, i want to import an excel sheet into a MySQL database and after importing it i want to store the excel sheet as a table in database
Export data to Excel Sheet in STRUTS 1.3
Export data to Excel Sheet in STRUTS 1.3  hi. how can i export content present on the jsp to excel sheet on button click..... and challenging part is i have to merge few rows and columns for a particular field(Value
How to export data from jsp to excel sheet by using java
How to export data from jsp to excel sheet by using java   How to export data from jsp to excel sheet by using java
How to export data from html to excel sheet by using java
How to export data from html to excel sheet by using java   How to export data from html to excel sheet by using java
Error in reading Excel data using jsp
Error in reading Excel data using jsp  ERROR while executing bellow...; HSSFSheet sheet = wb.getSheetAt(k); int rows... j=i+1; HSSFSheet sheet = wb.getSheetAt(k); int rows
Set Zoom Magnification of Excel Sheet
Set  Zoom Magnification of Excel Sheet In this section, you will learn how to set the zoom magnification of a Excel workbook's sheet. Zoom... In the below code, an Excel(.xlsx) workbook's sheet's magnification
export data from database to excel sheet - JDBC
execute a query then result will be display in MS-EXCEL sheet. please give me... HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("Excel Sheet"); HSSFRow rowhead...export data from database to excel sheet  I am facing a problem about
How to export data from html file to excel sheet by using java
How to export data from html file to excel sheet by using java    How to export data from html file to excel sheet by using java
How to Get The Data from Excel sheet into out jsp page???
How to Get The Data from Excel sheet into out jsp page???  How to Get The Data from excel sheet to out jsp page in webApp

Ads