Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Please go through below link.It may be helpful for you.
It will help you to create static resource using apex code.
Link: https://salesforce.stackexchange.com/questions/88182/create-static-resource-with-apex-code
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com