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 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