Link to home
Start Free TrialLog in
Avatar of Squeebee
SqueebeeFlag for Canada

asked on

URGENT: BLOB from ADO Stream to picturebox WITHOUT temp files

Hi All;

I want to move a file out of my Database using a stream object and send it straight into a picturebox in VB6 without using any temporary files. You can assume I have a stream object which I have loaded by BLOB into.

Squeebee

P.S. Not a lot of points, but all I have. I have a couple hundred other points in other unanswered questions (that never got usable answers) that I can throw to the correct answer as well.

ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

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
Avatar of Squeebee

ASKER

That seems to deal with a byte array, any tips on how to work a picture box and ADO stream object with the sample you provided?

Otherwise, does anyone else have ideas?

Squeebee
Avatar of vinnyd79
vinnyd79

Yes,it loads the blob data into a byte array,then converts the array into a picture object that can be loaded into a picture box without using a temp file.
Ok, so far so good, but I get a user-defined type not defined' error when I try to run it, complaining about the ipersiststream portion of the code.
Vinny's reference was incomplete and unsupported, but at least got me going in the right direction.