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
 TImageENDBView.LoadPictureEx of Blob fails
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jgun

India
11 Posts

Posted - Apr 21 2014 :  23:42:51  Show Profile  Reply
Hi, I am trying to load a BLOB file with size 210 MB into TImageENDBView. This is causing EoutOfMemory Exception. I have attached the callstach for your reference. Can you suggest me what can be done to address this?

jgun

India
11 Posts

Posted - Apr 22 2014 :  21:49:03  Show Profile  Reply
Hi, This is a bit urgent for us to solve. Can you please let us know what can be done about this?
Go to Top of Page

xequte

38510 Posts

Posted - Apr 23 2014 :  18:17:50  Show Profile  Reply
Hi

What version of ImageEn are you using? What type of image is being loaded from the blob? Have you set TImageENDBView.LegacyBitmap to false?



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

jgun

India
11 Posts

Posted - Apr 23 2014 :  20:20:41  Show Profile  Reply
ImageEN 5.0.5 is what we are using. We did not get Images of that huge size so, I stored Video into that BLOB. So, It is a video that we have stored in BLOB. Should we handle Videos and Images separately?
Go to Top of Page

xequte

38510 Posts

Posted - Apr 23 2014 :  23:22:32  Show Profile  Reply
Hi

LoadPicture/LoadPictureEx does not support video loading.

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

jgun

India
11 Posts

Posted - Apr 23 2014 :  23:26:27  Show Profile  Reply
But, I am not using LoadPicture/LoadPictureEX specifically. We have just bound the BLOB column to TImageENDBView component and when the ADOQuery is fetching the rows from DB, the component is internally calling this method, which is causing the exception.
Go to Top of Page

xequte

38510 Posts

Posted - Apr 24 2014 :  13:05:04  Show Profile  Reply
Hi

OK, why not set AutoDisplay to false:

http://www.imageen.com/help/TImageEnDBView.AutoDisplay.html

And then call LoadPicture as required.



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

jgun

India
11 Posts

Posted - Apr 25 2014 :  01:20:48  Show Profile  Reply
Thank you!! I have got it resolved this way. I am now loading pictue only when it is Image Type else I would load the default player for Videos and open the videos in that player. Is there any ImageEN component? If so, What is the component we should use when Video has to be loaded?
Go to Top of Page

xequte

38510 Posts

Posted - Apr 25 2014 :  02:58:46  Show Profile  Reply
Hi

If it is a compatible format you can display it in a TImageEnView (see the demos for assistance), or Delphi's TMediaPlayer.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: