Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET4.0
hi dears,
i get detail of book with this code from,
string url = @"" + 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 17-Sep-12 23:56pm
Edited 18-Sep-12 0:09am
Manfred R. Bihy at 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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: " 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: 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.

— Manfred
hanis29268 at 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, 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 R. Bihy at 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)

  Print Answers RSS
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 185
2 jlopez788 109
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,589
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505

Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100