[libRETS-users] How to get URL to photo?
noname
formts at mail.ru
Fri Dec 21 03:43:34 CST 2007
Hello guys,
I can download all photos but how can I get only links to photos?
using (librets.GetObjectRequest request = new
GetObjectRequest("Property", "Photo"))
{
request.SetLocation(true);
//request.AddObject(CurrentMLS, intCurrentPhotoNo);
request.AddAllObjects(CurrentMLS);
GetObjectResponse response =
this.Session.GetObject(request);
obj = response.NextObject();
if (obj != null)
{
string sUrl = obj.GetLocationUrl();
:
If I insert this string:
request.SetLocation(true);
response (obj variable) is always==null
If I omit this string - response!=null and I can download photos for each
property:
// get the bytes of the downloaded image
byte[] imageBytes = obj.GetDataAsBytes();
Thanks in advance.
Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.crt.realtors.org/pipermail/librets-users/attachments/20071221/db739f95/attachment.html
More information about the libRETS-users
mailing list