Link to home
Start Free TrialLog in
Avatar of familine
familine

asked on

image

how can i put a image in a image control without use datafield, and datasource properties?
The image source is in a field of a data control.
I tried this:
  image.picture=data1.recordset.fields("image_source")
but don't works.
He says "Wrong data type"...
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

image1 = loadpicture(PathOfImage)
e.g

image1.picture  = loadpicture("c:\bmp\me.bmp")
Avatar of familine
familine

ASKER

Not because the image is in a data control, in a Access Database.

Not because the image is in a data control, in a Access Database.

Get bytes from your db (use GetChunk method)
Write byte array to temporary file
Use LoadPicture(tempFile)
Delete temporary File
My proces will execute too many times...
Another code faster???

No, that's it for unbound mode.
ASKER CERTIFIED SOLUTION
Avatar of Lewy
Lewy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial