Ejemplo n.º 1
0
        private string InstanceOnCreateImage(object sender, CreateImageArguments e)
        {
            var path = System.Web.HttpContext.Current.Server.MapPath("~/data/");

            using (var file = new FileStream(path + e.FileName, FileMode.Create, FileAccess.ReadWrite))
            {
                file.Write(e.Content, 0, e.Content.Length);
                file.Close();
            }

            // return Path.Combine(path, e.FileName);
            String BaseURL = System.Configuration.ConfigurationManager.AppSettings["BaseURL"];

            return(BaseURL + "data/" + e.FileName);
        }
Ejemplo n.º 2
0
 private string createImageFinal(object sender, CreateImageArguments e)
 {
     // take image and process a calling path, use content in frozen fragments here
     return(String.Format("/ServiceApi/Services/FeedService.svc/GetFeedImage/{0}", e.FileName));
 }
Ejemplo n.º 3
0
 private string createImagePreview(object sender, CreateImageArguments e)
 {
     // take image and process a calling path, use elements from current opus
     return(String.Format("/ServiceApi/Services/FeedService.svc/GetFeedImagePreview/{0}", ((Snippet)sender).Id));
 }