How to store image in database?

2013-01-10 Thread Winster Jose
Hi, Is there any way to store an image in database? I have a multi tenant envrionment and application logo should be a user/tenant uploaded image. In OFBiz, I could see only a file managed storage system for images. Is that true? Thanks Winster T Jose Director - Technology and Architecture

Re: How to store image in database?

2013-01-10 Thread Malin Nicolas
Hi, Do you look the content application ? You can use a content to save image and load on you template decoractor by content element Nicolas Le 10/01/2013 10:42, Winster Jose a écrit : Hi, Is there any way to store an image in database? I have a multi tenant envrionment and application

Re: How to store image in database?

2013-01-10 Thread Winster Jose
Hi Malin ,thanks for the reply. But even for a content, the associated datasource stores the image in file system and not in database. It just stores the location in ObjectInfo field. Am I correct? On Thu, Jan 10, 2013 at 3:17 PM, Malin Nicolas malin.nico...@librenberry.net wrote: Hi, Do

Re: How to store image in database?

2013-01-10 Thread Malin Nicolas
Depends on your dataResourceType. By default OFBiz use OFBIZ_FILE, but some process use other type as IMAGE_OBJECT on your case. The ressource will store on ImageDataRessource entity as you wish. Nicolas Le 10/01/2013 11:59, Winster Jose a écrit : Hi Malin ,thanks for the reply. But even

Re: How to store image in database?

2013-01-10 Thread t...@skynet.be
Maybe off topic. But it general it is considered a bad idea to store an image in a database. (several reasons, e.g. performance) Normally one only stores the url of the image in the database. Kind regards Tore On 10/01/13 10:42, Winster Jose wrote: Hi, Is there any way to store an image in

Re: How to store image in database?

2013-01-10 Thread Sumit Pandit
Cell:- 917503046188 - Original Message - | From: t...@skynet.be | To: user@ofbiz.apache.org | Sent: Friday, January 11, 2013 11:11:48 AM | Subject: Re: How to store image in database? | Maybe off topic. | But it general it is considered

Re: How to store image in database?

2013-01-10 Thread Winster Jose
| Sent: Friday, January 11, 2013 11:11:48 AM | Subject: Re: How to store image in database? | Maybe off topic. | But it general it is considered a bad idea to store an image in a | database. | (several reasons, e.g. performance) | Normally one only stores the url of the image in the database