Example usage for com.liferay.portal.kernel.service ImageLocalServiceUtil updateImage

List of usage examples for com.liferay.portal.kernel.service ImageLocalServiceUtil updateImage

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service ImageLocalServiceUtil updateImage.

Prototype

public static com.liferay.portal.kernel.model.Image updateImage(long imageId, java.io.InputStream is)
            throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.document.library.convert.test.DocumentLibraryConvertProcessTest.java

License:Open Source License

protected Image addImage() throws Exception {
    return ImageLocalServiceUtil.updateImage(CounterLocalServiceUtil.increment(),
            FileUtil.getBytes(getClass(), "dependencies/liferay.jpg"));
}