Fórumok

What does imageLocalService.updateImage(... exactly do

Morad Ahmad, módosítva 9 év-val korábban

What does imageLocalService.updateImage(... exactly do

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2010.06.16. Legújabb bejegyzések
Hallo,

I try to upload images for different entities...

Each entity has also a "small image". For that I use ths imageLocalService to add such a small image.

imageLocalService.updateImage(smallImageId, smallImageBytes);

Q1. This works well. However I do not understand what these call exactly do? Where is the images sotred? In the document library or in the file system? Db?

Q2. Can I use these method to add a list of images for my entities or is it better to upload the images to the document library with DL...Util?

Thanks,
Morad.
thumbnail
David H Nebinger, módosítva 9 év-val korábban

RE: What does imageLocalService.updateImage(... exactly do

Liferay Legend Bejegyzések: 14918 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
A1. Yes. Depending upon how you have configured your doc lib, it could go to filesystem or db or ...

A2. No. The small image usually means a thumbnail. Actually Liferay will create a thumbnail for all images that you load so you shouldn't need to do the small images yourself.