ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load JPEG from String

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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