Hacky version of the ByteArrayResource that implements the getURL() method, required for the resource to work with Spring's ServletContextResource.
Constructor and description |
---|
GrailsByteArrayResource
(byte[] byteArray) |
GrailsByteArrayResource
(byte[] byteArray, java.lang.String location) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getFilename() |
|
URL |
getURL() Overrides the default behaviour to generate a fake "file:" URL so that the resource can be used from a ServletContextResource. |
Overrides the default behaviour to generate a fake "file:" URL so that the resource can be used from a ServletContextResource.