Re: TImage problem! Help Please!
From: J French (erewhon_at_nowhere.uk)
Date: 12/16/04
- Previous message: Brandon: "Problems with Delphi's XP Theme Manager"
- In reply to: J West: "Re: TImage problem! Help Please!"
- Next in thread: Rob Kennedy: "Re: TImage problem! Help Please!"
- Reply: Rob Kennedy: "Re: TImage problem! Help Please!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Dec 2004 08:04:44 +0000 (UTC)
On Wed, 15 Dec 2004 19:16:29 -0000, "J West" <jimw@fluffypaws.co.uk>
wrote:
>What?
>Sorry that doesn't make any sense at all!
>The Image HAS to save out to a memory stream or a file in order to be able
>to assign the picture to the relevant BLOB parameter in my ADOQuery.
>As fr using button as custom forms I agree you can't if you wanted to do
>something like that then use a panel but I am most cerainly not trying to do
>this!
>
>Maybe I should have explained what I'm doing a little more clearly (Having
>one of those weeks)!
>
>I was having difficulty getting an image into a mysql database. My
>application is a multi tier app and my data classes weren't getting their
>picture property set properly so I set up a little test bed to check my
>assignments and found that my code was incorrect having sorted out my code I
>was left with the problem I posted here which Mike Shkolnik has kindly
>corrected for me and now the picture properties and the memory streams are
>now working brilliantly.
>
>I am now however left with problems getting the images back out of the
>database as my TImage on my form is only partially loading the image back
>in.
>
>Hmmmmm! maybe I just need a brain transplant as I have now been trying to
>get this thing working for two weeks and everytime I solve a problem I get
>another one.
>
>anyway thanks muchly for the response
I was a bit taken aback by the typecasting of
TJPEGImage(Image1.Picture.bitmap)
I'm surprized that it is valid - I now see that it is
I've found that some uses of SaveToStream write an 8 byte header
before the actual data - that is TGraphic.SaveToStream( Strm )
Somewhere in the Delphi Help I saw something about saving graphics to
a TBlobStream ... if they are going into a database
- Previous message: Brandon: "Problems with Delphi's XP Theme Manager"
- In reply to: J West: "Re: TImage problem! Help Please!"
- Next in thread: Rob Kennedy: "Re: TImage problem! Help Please!"
- Reply: Rob Kennedy: "Re: TImage problem! Help Please!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|