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!

How to use stream correct

Status
Not open for further replies.

Allan33

Programmer
Aug 7, 2003
4
DK
Hi

I have a problem whit my stream, i made a connect to a file and is reseving all, but my stream wont catch it

void __fastcall TForm1::Button3Click(TObject *Sender)
{
TMemoryStream *MyStream = new TMemoryStream();
Graphics::TBitmap *Bitmap = new Graphics::TBitmap();
TJPEGImage *Jpg = new TJPEGImage();

NMHTTP1>Get" NMHTTP1->CaptureStream(MyStream,-1);
MyStream->Position = 0;
Jpg->LoadFromStream(MyStream);
Image1->Picture->Assign(Jpg);
//Image1->Picture->Bitmap->Assign(Jpg);
}

Hope somebody can help me

Allan33
 
I think maybe the captureStream call should go before the Get call. I have never used these, so I'm just guessing.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top