Where is Live Photo?^^
MSDN Forums: Live Controls -
No photo show me this handler :
<%
@ WebHandler Language="C#" Class="LoadImageHandler" %>
using
System;
using
System.IO;
using
System.Net;
using
System.Web;
public
class LoadImageHandler : IHttpHandler
{
private string path = null;
private string dat = null;
private string lid = null;
public void ProcessRequest (HttpContext context)
{
foreach (string key in context.Request.QueryString)
{
if ("url" == key)
{
path = context.Request.QueryString[key];
}
else
{
if ("lid" == key)
{
lid =
HttpUtility.UrlDecode(context.Request.QueryString[key]);
}
else
{
if ("dt" == key)
{
dat = context.Request.QueryString[key];
//dat = HttpUtility.UrlDecode(context.Request.QueryString[key]);
}
else
{
context.Response.StatusCode = (
int)HttpStatusCode.BadRequest;
return;
}
}
}
}
if ((path == null) || (dat == null))
{
context.Response.StatusCode = (
int) HttpStatusCode.BadRequest;
return;
}
// Get Photo
HttpWebRequest serviceRequest = (HttpWebRequest)WebRequest.Create(path);
serviceRequest.UserAgent =
"Microsoft Windows Live Photo Demo";
serviceRequest.Method =
"GET";
serviceRequest.Headers.Add(
"Authentication", "DelegationToken dt=\"" + dat + "\"");
try
{
HttpWebResponse serviceResponse = (HttpWebResponse)serviceRequest.GetResponse();
context.Response.ContentType = serviceResponse.ContentType;
Stream s = serviceResponse.GetResponseStream();
int b = s.ReadByte();
while (b != -1)
{
context.Response.OutputStream.WriteByte((
byte)b);
b = s.ReadByte();
}
}
catch (WebException ex)
{
//The HTTP request failed, display what happened.
context.Response.StatusCode = (
int) HttpStatusCode.InternalServerError;
}
catch (Exception ex)
{
//The parsing failed, display what happened.
context.Response.StatusCode = (
int) HttpStatusCode.InternalServerError;
}
}
public bool IsReusable {
get {
return true;
}
}
}
Why??
I call that to show me the photo in a Image:
Image1.ImageUrl =
"./LoadImageHandler.ashx?url=" + url + "&lid=" + lid + "&dt=" + dt;
url, lid and dt are right at 100% but I have a blank image with the "x" red :/
Help me please!!! ^^
View article..
Trackback spam editor
MSDN Forums: Live Spaces -
I have been using spaces for a while and
although it is painfully slow I really like its functionality and
appearance. However, trackback spam is driving me nuts and I have had to turn
it off. The MSN Spaces way of removing trackbacks, one at a time and a 15 second
delay between each, is not very friendly.
I have been thinking about creating a simple application that removes trackback
spam, but to my surprise the API for MSN spaces is disappointingly basic and it does not seem possible to interact with the trackbacks.
I assume Microsoft is working on extending the API, any idea when the functionality
my application requires will become available?
View article..
hey
MSDN Forums: Live Spaces -
please help me regarding my account, somebody tried to open it, im afraid they might open my account because my secret answer is very easy to answer..please help me change it as soon as possible..please!
View article..
Domain already in use
MSDN Forums: Live Controls - I am trying to register a application for use with Contacts API and I get
The application domain cannot be added to the application because it already exists
I am pretty sure that there are no other app-ids within our company (the actual domain owner) registered with windows live.
Who should I get in touch with? One older post with similar issue suggests contacting Jorgen Thelin (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3563970&SiteID=1)- but I am not sure if he is the right person/moderator.
View article..
Invite contacts response unreadable
MSDN Forums: Live Controls -
I'm using the contacts API to get emails to send invitations. I get the delegation token, construct the invite contact request and I get a positive response. The problem is that I'm not being able to read the response. I get a lot of strange characters. To read the response I'm using UTF-8 format as in the examples.
Has anybody gone through this issue before? What can I do?
Thanks for the help!
View article..
need someone to hack this account
MSDN Forums: Live Spaces -
one of my accounts sanali_01@hotmail.com has been hacked. can someone send me the password to my other account : kitty_lover102@hotmail.com
View article..
Organizing Categories on Windows Live Spaces?
MSDN Forums: Live Spaces - I would like to organize my list of categories on my Spaces page but have not been able to find even the ability to alphabetize the list. Am I missing something or is the just not possible?
View article..
access the client side database
MSDN Forums: Live Spaces -
hi
i am working in asp.net (with visual basic ). iwant to develop a web page which use the client side computer data base (MS Access) and dispaly the the record. please tel me how it was possible.
thanks
View article..
Contacts Control v3 - IM function is not working with FF v3
MSDN Forums: Live Controls - Dear All,
We are trying to use the contacts control with Firefox 3. Control is loaded, email function is working as expected, but the IM function is not working. The IM icon does not appear in the control. Do you know any solution for this please?
Thanks,
Janos
View article..
Virtual Earth Map Control
MSDN Forums: Live Controls -
Any idea why I'd get the following error BREAKS Here (see yellow) using the New Template and runining in debug?
initialize :
function() {
///
/// Initialises the Map.
///
Microsoft.Live.ClientControls.VE.Map.callBaseMethod(
this, 'initialize') ;
//Bind to all form submits
this._onFormSubmitDelegate = Function.createDelegate(this, this._onPagePostBack);
var forms = document.getElementsByTagName("form");
for (var x=0;x
$addHandler(forms[x],
"submit",this._onFormSubmitDelegate);
}
this._original__doPostBack = __doPostBack;
this.__doPostBackDelegate = Function.createDelegate(this, this.__doPostBack);
__doPostBack =
this.__doPostBackDelegate;
//verify VEAPI has loaded
View article..
PreviousNext