PowerBuilder Support

Accelerate development with PowerBuilder, the market’s favorite 4GL RAD tool.

Hi Everyone,

I have a problem on setting the pictures on a datawindow, which I retrieve from database from embedded SQL.

Briefly I have pictures on a table. I retrieve a picture with SelectBlob into a blob variable. Then I want to set that image(dw_1.object.p_1.SetPicture(picture) ) to a picture control in a datawindow with SetPicture(), I got the "error accessing external object property setpicture" error...

For normal picture control (not in dw i mean) this function works ok but not in dw's.

I am using PB v9.0.1. Build 7236 and the DB is Sybase ASE v15.

Please help me in this situation.

Regards

Kutay AKIN

Share

Reply to This

Replies to This Discussion

Hi,

I think you have to write your blob to file and set the path by picturename like this:

dw_1.object.p_1.picturename = "C:\TEMP\mypicture.jpg"

Benjamin

Reply to This

Yeah, I found that solution on experts-exchange right now. Sounds working not tried yet. But not an efficient or good way to do so i think... but probably only the solution.

Thanks for your interest buddy... Have a nice day.

Reply to This

RSS

© 2009   Created by Jason Fenter on Ning.   Create a Ning Network!

Badges  |  Report an Issue  |  Privacy  |  Terms of Service