Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi dears,
i get detail of book with this code from isbndb.com,
C#
string url = @"http://isbndb.com/api/books.xml?access_key=5X5U83P4&results=" + cboresulttype.Text + "&index1=" + Cbosearchtype.Text + "&value1=";
   HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
                req.Timeout = 20000;
                HttpWebResponse res = (HttpWebResponse)req.GetResponse();
                StreamReader sr = new StreamReader(res.GetResponseStream());
                string txt = sr.ReadToEnd();
.
.
.
.


now i want get the photo(cover of book) of book??
how i can???
Posted
Updated 18-Sep-12 0:09am
v3
Comments
Manfred Rudolf Bihy 18-Sep-12 6:13am    
And what exactly is inside the string txt after you've read it from the response stream?
It might be quite important to know that!

1 solution

You just have to read this and please do yourself a favor and read it all: How to find a cover image for a book with an ISBN[^].

In case you've ignored my above advice a short summary: "isbndb.com does not have the functionality you want.". The site recommends you to use Open Library Covers API[^], which is quite simple to use.

Room 329 wrote:

ISBNdb.com doesn't actually provide the cover image. They have an useful API for finding out more information about a given ISBN, but not the cover image.


Regards,

— Manfred
 
Share this answer
 
v3
Comments
[no name] 18-Sep-12 6:46am    
you are right,
it's correct.
now i want show this photo on my application form(c# 2010),
how i can???
for detail of book,isbndb.com send A xml file for me and i can separate field such as tittle and publisher and ETC.
so for get cover of book, how i must to do??
Manfred Rudolf Bihy 18-Sep-12 6:59am    
You find everything on the site I linked to.
You can read I hope? Which part did you not understand. Go to the site I linked to and search for the words:
"The URL pattern to access book covers is:"

Just read the few lines below that and you'll know everything there is to access the pictures.
Give it a try! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900