[Rets-dev] RETS manifest\

Jeff Brush jeffbrush at hotmail.com
Wed Jul 26 11:13:53 CDT 2006



I think the point is after you roll in Security considerations (who's 
authorized to see it, what method do we use, is it digitally signed, etc.) 
and infrastructure issues ( do we setup a parallel HTTP server with its own 
rules - it shouldn't just be open to everyone, if the binary data is created 
'just in time' - someone needs to store the original criteria or pass it as 
part of the url, etc.) the feeling of 'boggle' might be reduced. And in 
reallity, programming-wise, it isn't that different from responding to a 
HTTP GET using CGI. Just not as familiar.

Just referring to the binary transport.

C#
[WebMethod]
public byte[] GetFile(string fileName)
{

    byte[] response;
    String filePath = AppDomain.CurrentDomain.BaseDirectory + @"App_Data\" + 
fileName;
    response = File.ReadAllBytes(filePath);
    return response;
}



Also I think Libor (and Matthew as well) need to update their rets-dev email 
addresses to get their messages posted.

Jeff

----Original Message Follows----
From: dbt <retsdev at develest.com>
To: rets-dev at rets.org
Subject: Re: [Rets-dev] RETS manifest\
Date: Wed, 26 Jul 2006 10:34:06 -0500

On Wed, Jul 26, 2006 at 11:22:44AM -0400, Libor Viktorin wrote:
 > Unfortunately, in some cases the binary data may be generated on-demand
 > by the server (eg loading the image from a database, or
 > formatting/branding an image for the RETS user). In this case providing
 > just URL would mean storing the generated data in a temporary file, with
 > all the overhead of expiring and deleting the file after some time.

This may come as a huge shock to some people, but you can generate data
dynamically for an HTTP client without using SOAP.  We used to have this
little thing called CGI...  And there are far more advanced ways of
doing this.  I've output dynamic images from IIS using ASPX.NET, and
I'm pretty sure SOAP wasn't involved.

byte[] data = get_image_from_database(id);
Response.ContentType = 'image/jpeg';
Response.Write(data);
Response.Close();

Just reading around I came across this project from CRT:
http://www.crt.realtors.org/projects/visualkeeper/index.html

So clearly you can do this in PHP as well.

PHP + IIS = 99% of all webservers (if not webapps), so clearly
this isn't rocket science.

  - dbt
_______________________________________________
Rets-dev mailing list
Rets-dev at rets.org
http://lists.rets.org/mailman/listinfo/rets-dev




More information about the Rets-dev mailing list