Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-04-2004, 04:08 AM
Vasilis Vasilis is offline
Junior Member
 
Join Date: Jun 2004
Posts: 9
Default How to store a JPG image into Access using DBImage ?

Unfortunally the crystal reports can not link a picture in the detail section of a report using the path of the picture. Therefore you need ole object pictures to use in a report. I 'm using in delfi 7 a dbimage component with an access db to store ole objects automatycally by retriving the path from SEN's ATT table... The problem is when I'm posting the ole object it is stored as long binary if it is bmp image or else when it is jpg it is ignored????????? If anyone has a tip in storing JPG files as OLE OBJECT I'm all ears
Reply With Quote
  #2  
Old 11-04-2004, 04:16 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: How to store a JPG image into Access using DBImage ?

TDBImage doesn't allow to display the jpeg-images

See: http://groups.google.com/groups?hl=en&lr=&th=39f567ff722faa67&rnum=1

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #3  
Old 11-05-2004, 05:37 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: How to store a JPG image into Access using DBImage ?

Mike, you are sorely mistaken!

http://delphi.about.com/od/database/l/aa030601a.htm

MrBaseball34
Hook'Em Horns!
Reply With Quote
  #4  
Old 11-05-2004, 05:42 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: How to store a JPG image into Access using DBImage ?

I'm right:-)

If you'll read the article, you'll see that Zarko used the standard TImage (not TDBImage) and converted an image from BLOB on-fly.

But standard TDBImage supports the bitmaps-only, as I wrote in my answer.

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #5  
Old 11-05-2004, 05:51 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: How to store a JPG image into Access using DBImage ?

Ha, ha!, see your previous post:
http://216.101.185.148/scripts/isapi.dll/execute?SearchFor=jpeg+dbimage+shkolnik


MrBaseball34
Hook'Em Horns!
Reply With Quote
  #6  
Old 11-05-2004, 05:56 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: How to store a JPG image into Access using DBImage ?

I'm going to suggest that you install a DBImage replacement.
Find one here: http://www.torry.net/pages.php?id=533

Two freeware ones there.

MrBaseball34
Hook'Em Horns!
Reply With Quote
  #7  
Old 11-05-2004, 06:15 AM
mshkolnik mshkolnik is offline
Senior Member
 
Join Date: Jul 2001
Posts: 4,195
Default RE: How to store a JPG image into Access using DBImage ?

There I was mistaked:-)

Just to clarify:
- a lot of years ago I wrote an own TSMDBImage where any picture could be displayed from BLOB-field (everything like TImage but with linked dataset+field)
- so when jpeg unit included in uses, this TSMDBImage will support the jpegs. When unit for gif-files included in uses, this TSMDBImage will support the gifs too

When I answered on message (you posted this link), I forgot that TDBImage doesn't support this feature but my TSMDBImage does.

But in this topic when an original question is "how to show the jpeg in TDBImage", I was right - the standard TDBImage doesn't allow. <lol>

With best regards, Mike Shkolnik
http://www.scalabium.com
Reply With Quote
  #8  
Old 11-05-2004, 06:17 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: How to store a JPG image into Access using DBImage ?

Ah, just whacking your chops... ;-)


MrBaseball34
Hook'Em Horns!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.