ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sumit Pandit <sumit.pan...@tcs.com>
Subject Re: How to store image in database?
Date Fri, 11 Jan 2013 05:50:53 GMT
Agreed with Tore, 

Reference to Winster's question- 
Yes it store the image in the data base in BLOB format when dataResourceTypeId=IMAGE_OBJECT
is used, 
for reference please have a look at following urls - 

https://demo-trunk.ofbiz.apache.org/content/control/EditDataResource?dataResourceId=Winster_Jose

https://demo-trunk.ofbiz.apache.org/content/control/UploadImage?dataResourceId=Winster_Jose

https://demo-trunk.ofbiz.apache.org/webtools/control/FindGeneric?entityName=ImageDataResource&find=true&VIEW_SIZE=50&VIEW_INDEX=0


-- 
Thanks And Regards 
Sumit Pandit 
Tata Consultancy Services 
Cell:- 917503046188 
____________________________________________ 

----- Original Message -----

| From: tore@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 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 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
| > Chathurangam Creative Solutions Private Ltd.
| > Cell: +91-98469 31020
| > Mail: winster@chathurangam.net
| >
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message