T O P I C R E V I E W |
johnrboren |
Posted - Nov 19 2012 : 17:18:04 I have a JPEG that is being transported as a string. I know I have the complete JPEG - but not sure why I can't display it.
var InPic:String; MyStream:TStringStream; begin InPic:=GetNodeValue(PersonNode,'IMAGE'); MyStream:=TStringStream.Create(InPic); MyStream.Position:=0;
Photo.IO.LoadFromStreamJpeg(MyStream); Photo.IO.Update;
Any reason why this wouldn't work?
JOHN BOREN |
2 L A T E S T R E P L I E S (Newest First) |
johnrboren |
Posted - Nov 20 2012 : 11:53:36 This actually did work. I had some white space and some other stuff preceding the actual JPEG. Once I removed that and scanned for the start of the JPEG message, it worked great.
JOHN BOREN |
ehkhalid |
Posted - Nov 20 2012 : 01:44:18 Hi, Can you attach an example of xml file that contain the jpeg
|