Rev 1310 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1310 | Rev 1312 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | package pt.estgp.estgweb.services.data; |
1 | package pt.estgp.estgweb.services.data; |
2 | 2 | ||
- | 3 | import org.apache.log4j.Logger; |
|
3 | import pt.estgp.estgweb.domain.Image; |
4 | import pt.estgp.estgweb.domain.Image; |
4 | import pt.estgp.estgweb.domain.ImageImpl; |
5 | import pt.estgp.estgweb.domain.ImageImpl; |
5 | 6 | ||
6 | import java.io.ByteArrayInputStream; |
7 | import java.io.ByteArrayInputStream; |
7 | import java.io.IOException; |
8 | import java.io.IOException; |
8 | import java.io.InputStream; |
9 | import java.io.InputStream; |
9 | 10 | ||
10 | import org.apache.log4j.Logger; |
- | |
11 | - | ||
12 | /** |
11 | /** |
13 | * @author Jorge Machado |
12 | * @author Jorge Machado |
14 | * @date 28/Mai/2008 |
13 | * @date 28/Mai/2008 |
15 | * @see pt.estgp.estgweb.services.data |
14 | * @see pt.estgp.estgweb.services.data |
16 | */ |
15 | */ |
Line 42... | Line 41... | ||
42 | { |
41 | { |
43 | return ResourceManager.getResource(IMAGES_RESOURCE_PATH, img.getId()); |
42 | return ResourceManager.getResource(IMAGES_RESOURCE_PATH, img.getId()); |
44 | } |
43 | } |
45 | catch (1.5.0/docs/api/java/io/IOException.html">IOException e) |
44 | catch (1.5.0/docs/api/java/io/IOException.html">IOException e) |
46 | { |
45 | { |
47 | logger.error(e,e); |
46 | logger.error(e); |
48 | } |
47 | } |
49 | return null; |
48 | return null; |
50 | } |
49 | } |
51 | } |
50 | } |