<div dir="ltr"><div><div><div>Hi Kiran,<br><br></div>thank you so much! You've done me a great favor! ;)<br><br></div>Cheers,<br></div>Qi<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-18 11:33 GMT+02:00 kiran g <span dir="ltr"><<a href="mailto:kiran.blgt@gmail.com" target="_blank">kiran.blgt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
If you need the contents of the file, you can get it in a byte array using<br>
something like the following:<br>
<br>
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,<br>
response);<br>
CmsObject cmso = cms.getCmsObject();<br>
CmsFile cmsFile= cmso.readFile("/login/download.jpg");<br>
byte[] contents=cmsFile.getContents();<br>
<br>
You can then write the byte array to FileOutputStream.<br>
<br>
<br>
<br>
-----<br>
Cheers,<br>
Kiran<br>
--<br>
View this message in context: <a href="http://opencms.996256.n3.nabble.com/File-path-in-opencms-tp26357p26358.html" rel="noreferrer" target="_blank">http://opencms.996256.n3.nabble.com/File-path-in-opencms-tp26357p26358.html</a><br>
Sent from the OpenCMS mailing list archive at Nabble.com.<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>