积极答复者
silverlight rich text editor 加载图片问题

问题
答案
-
using System; using System.Collections; using System.Data; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Linq; using System.Net; namespace ReadGifBySL3.Web { /// <summary> /// Summary description for $codebehindclassname$ /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class ClientAccess : IHttpHandler { public void ProcessRequest(HttpContext context) { WebClient client = new WebClient(); byte[] bytes = client.DownloadData(new Uri(context.Request["url"].ToString())); context.Response.BinaryWrite(bytes); } public bool IsReusable { get { return false; } } } }
通过上面的ashx的webservice代理就可以了,把网址发给这个文件,然后会传回流过来- 已标记为答案 李庆_八爪熊Moderator 2009年5月10日 3:00
全部回复
-
这个你可能要重写这个插件吧
My blog: http://blog.csdn.net/dotfun http://dotfun.cnblogs.com
My contact: QQ:372900288 E-mail:372900288@qq.com msn:sellnet007@hotmail.com
-
-
using System; using System.Collections; using System.Data; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Linq; using System.Net; namespace ReadGifBySL3.Web { /// <summary> /// Summary description for $codebehindclassname$ /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class ClientAccess : IHttpHandler { public void ProcessRequest(HttpContext context) { WebClient client = new WebClient(); byte[] bytes = client.DownloadData(new Uri(context.Request["url"].ToString())); context.Response.BinaryWrite(bytes); } public bool IsReusable { get { return false; } } } }
通过上面的ashx的webservice代理就可以了,把网址发给这个文件,然后会传回流过来- 已标记为答案 李庆_八爪熊Moderator 2009年5月10日 3:00