I am trying to read a picture library named "ImageLibrary" as follows:
SPList list = web.GetList("ImageLibrary");
But I am getting following error:
How do I read ImageLibrary?
SPWeb.GetList("") gets a-a list by its server relative path. See here API description.
So to get your list try to pass something like "/Lists/ImageLibrary". Or appropriate server relative path.
Hope it helps,