473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Advanced data binding using images

Hello,

Does anyone know how to bind the image property of a picture control to an
Access 2000 database OLE object column that contains a MS Photo Editor 3.0
photo? When I try binding the picture control image with the advanced
binding panel, my dataset shows the table with the column but it will not
set.

I read thru the MS Knowledge Base and the closest solution I could find was
article 317701. The example code reads an image "from file"; converts it to
a byte array; stores the byte array into a database table; reads back the
byte array from the table; converts it to a memory stream which is finally
converted to an image. It seems like you have to use code to first populate
the database with the images in order to read them properly. I want to use
an existing Access database that already has all the images stored. I
noticed that in the Pitfall section of the article it states:

"This test will not work with the Photo column in the Employees table of the
sample Northwind database distributed with Access and SQL Server. The bitmap
images stored in the Photo column are wrapped with the header information
created by the Visual Basic 6.0 OLE Container control"

I'm under the impression that you cannot bind to an OLE column in an Access
database where the images were first stored using Access. Is this correct or
am I missing something?

By the way, there error I get using the example code is "Invalid parameter
used" when executing Image.FromStream(strBlobData). Of course, I did not
save the image using the example code. I only used the code that reads the
image.

Thanks in advance.

Frank
Nov 15 '05 #1
0 1836

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: John Robert | last post by:
Hi! Anyone has recommendations for advanced ASP.NET books? By advanced, I mean complicated stuff... not just authentification and datagrid binding I'm mainly interrested in learning more...
5
by: Brad Shook | last post by:
I am trying to bind one column of a datagrid to a seperate textbox and the rest of the fields to a datagrid. the comments are too large to fit in a datagrid so I created a textbox below the...
2
by: Brad Shook | last post by:
First of all thinks to Cor Ligthert for helping me with this last week. If you wild like to read Cor's comments please refer to the posting from 10/14/2004 and 8:48AM "Help with Advanced...
1
by: Naha | last post by:
Hi, I am starting a new project where I have to create a office monitoring system, whereby I need to capture images from a webcam and analyse these images using Java advanced imaging in order to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.