Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading TImage from stream

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I need to read a TImage from a stream. I can load a TJEPGImage from a stream, a TBitmap from a stream, even a TGraphic from a stream, but a TImage won't let me. Why??? And how can I. I have to load an inage from a stream, but it won't let me. Any help, please??? Cyprus
[noevil]
 
Try using TImage->Picture->Bitmap (if it's a bitmap). Look in help for TImage->Picture :) [pc3]
In the end it will probably be the simplest, most obvious thing that I was doing wrong...
 
The problem is that it's not a bitmap. It's a GIF. I have a patch to work the GIF and integrate it with the TBitmap. That's not a problem. This is a client-server program. The server sends a stream (the GIF) to the client. I don't want the client to keep the GIF image on their hard drive. That would be a bad thing. I need the TImage to load it directly from the stream it was sent in. So basically, it has to be a stream. Any other help?? Cyprus
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top