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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to load Picture from database
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zarrinnegar

Iran
3 Posts

Posted - Dec 18 2012 :  12:59:05  Show Profile  Reply
Hi Dear
I use Evolution for .net
I want to load image from database or PictureBox into Ieviewer.
like this code:

MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, pictureBox1.Image.RawFormat);
ieViewer1.Image.LoadImage(ms);

But I don't see any image in viewer
Help me for this problem

Thanks a lot

xequte

39053 Posts

Posted - Dec 18 2012 :  13:03:19  Show Profile  Reply
Hi

Please try:

MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, pictureBox1.Image.RawFormat);
ms.Position = 0;
ieViewer1.Image.LoadImage(ms);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

zarrinnegar

Iran
3 Posts

Posted - Dec 18 2012 :  13:06:17  Show Profile  Reply
OK
thanks a lot
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: