You need to sign in to do that
Don't have an account?
Nagaraju Gorli
How to upload image to static resource from vf page?
HI ,
I need to uploade image in to static resource through visualforce page & controller.
I need to uploade image in to static resource through visualforce page & controller.
string str;
StaticResource st = new StaticResource();
st.body=blob.toPdf(str);
st.name='abcd';
insert st;
Do select it as a best answer if it helped you.
<apex:outputPanel >
<apex:image url="{!URLFOR($Resource.Apple)}"/>
<apex:outputText value="{!$Label.DESTINATION_RECORD_PAGE_BLOCK_SECTION_ACTION_LABEL}"/>
</apex:outputPanel>