Community articleWorking with media resources
Added by IBM contributorIBM on June 19, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can upload and replace files in your blog.



Using the Atom Publishing Protocol, also known as AtomPub, you can upload and replace files in your blog.
Creating media resources
When you upload a file to a blog, the server creates a media resource entry to represent the file. To create a media resource, post the file to the blog using the HTTP POST method.

Retrieving a media resource
You can retrieve a copy of the file itself or you can retrieve the file's metadata. To retrieve a copy of the file, use the edit-media link found in each entry in the media resource link entries feed. To retrieve file metadata, use the edit link found in each entry in the blog's media link entries feed.

Deleting media resources
To delete a file uploaded to a blog, use the HTTP DELETE method.