VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:29:47 03/12/03 Wed
Author: Michel
Subject: Re: can't load MemoryStream with TImageScrollBox
In reply to: Martin Diehl 's message, "can't load MemoryStream with TImageScrollBox" on 14:09:35 03/12/03 Wed


Hi Martin,

That is strange. A common error is that the stream is not positioned at the beginning.

Try,

Stream.Seek( 0, soFromBeginning);

before LoadFromStream.

Best regards,

Michel

>I save with TJpegGraphic and SaveToStream picture to a
>TMemoryStream named PreviewStream. Now I try to load
>this stream with LoadFromStream(PreviewStream,'JPG',0)
>in a TImageScrollBox, but I get the error 'empty input
>file'.
>With TPCXGraphic the same trouble!
>The same procedure with TBitmapGraphic works fine.
>What's wrong?
>
>Regards
>
>Martin Diehl

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:

  • Re: can't load MemoryStream with TImageScrollBox -- Michel, 17:29:56 03/12/03 Wed
  • Re: can't load MemoryStream with TImageScrollBox -- Martin Diehl, 04:03:05 03/13/03 Thu
    [ Contact Forum Admin ]


    Forum timezone: GMT-5
    VF Version: 2.94, ConfDB:
    Before posting please read our privacy policy.
    VoyForums(tm) is a Free Service from Voyager Info-Systems.
    Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.