We help IT Professionals succeed at work.

Blob field and saving picture in file

Vaalar
Vaalar asked
on
780 Views
Last Modified: 2013-11-23
Hi,
I`ve got problem with saving picture from JvDBImage to file on hdd. I`m showing the picture on the form and i would like to be able to save it with onclick event, in directory of my choice.
Here is my select from db:

Add('SELECT ID, T_NO, PICTURE, DATE_TIME FROM REC WHERE ID = :p2');
    Params.ParamByName('p2').AsInteger:=picture_max;

Best Regards
Vaalar
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2010

Commented:
Never used JvDBImage but devexpress image component has rightclick option -save as - (then savefiledialog opens).So if JvDBImage has no that option then you would have to program the whole thing (on rightmouse click- opendialog-etc...)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
Your Q confuses me. Are you having problems saving the picture in the visual component JvDBInmage to a file in some directory on your hard drive? Or are you having other problems in getting the image directly from your database to a file on the harddrive?

The JvDBImage has a procedure to savetofile such as:

JvDBImage1.Picture.SaveToFile(SaveDialog1.FileName)

If you need a function to save a database blob field which contains an image via streams to a file, or directly from your database, let us know. But Steve Bay's should work just fine!

john

Author

Commented:
And it works perfect :)
Thx for help
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.