file=URL('static','SUBFOLDER/FILENAME')

On Wed, Aug 24, 2011 at 12:09 PM, Richard Vézina <
[email protected]> wrote:

> Try this : URL('static','SUBFOLDER/FILENAME')
>
> Richard
>
>
> On Wed, Aug 24, 2011 at 11:55 AM, Richard Dijkstra <
> [email protected]> wrote:
>
>>  Anthony, Richard,
>>
>> Thank you for the feedback.
>>
>> Getting the png file from the static area could be done, and how do I get
>> the dynamically create file in that static area?
>> What would the output path be in :
>>
>>     grdevices.png(file="/tmp/rweb2output.png" , width=512, height=512)
>>
>> Richard
>>
>>
>> Op 24-8-2011 16:37, Anthony schreef:
>>
>> On Wednesday, August 24, 2011 8:29:11 AM UTC-4, Richard wrote:
>>>
>>> <p> Here is the R output via a tmp png file
>>> <object src="/tmp/rweb2output.png"> obj text </OBJECT>
>>> </p>
>>>
>>  Since src is a relative url, it will end up being
>> http://127.0.0.1:8000/tmp/rweb2output.png (assuming you're running on
>> your local machine on the default port). Instead, put the file inside your
>> application's 'static' folder (you can create a 'tmp' subfolder in there),
>> and use src="{{=URL('static','tmp/rweb2output.png')}}". Also, use an
>> <img> tag instead of <object>.
>>  Anthony
>>
>>
>> Interne Virusdatabase is verouderd.
>> Gecontroleerd door AVG - www.avg.com
>> Versie: 9.0.872 / Virusdatabase: 271.1.1/3830 - datum van uitgifte: 08/12/11 
>> 20:34:00
>>
>>
>>
>>
>

Reply via email to