掲示板

What does imageLocalService.updateImage(... exactly do

9年前 に Morad Ahmad によって更新されました。

What does imageLocalService.updateImage(... exactly do

Junior Member 投稿: 71 参加年月日: 10/06/16 最新の投稿
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
9年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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.