You need to sign in to do that
Don't have an account?
mahesh1.396434879374128E12
Display the text data which is present in the static resource, on a Visual Force page
I am having a static resource which consists of a text file. I want to show the text on the Visual Force page.
I got the Output for the text data (data.txt).....Now i want to use the HTML File( file.html).
But it is showing in the encrypted format....can you help me in this issue.....
This is the code i used for getting the Text data on the VF page.......
VF Page:
<apex:page controller="MyStatic">
<apex:outputText value="{!textFromSomeUniqueName}">
</apex:outputText>
</apex:page>
controller:
public with sharing class MyStatic {
public String textFromSomeUniqueName {
get {
StaticResource sr = [select Body from StaticResource where Name = 'StaticText' ];
return sr.Body.toString();
}
}
}
Suggest me to get the HTML FILE data on the VF Page....