Select to view content in your preferred language

Attachment Editor w/ Video

980
2
11-29-2012 09:12 AM
GISProgrammer
New Contributor III
I have a very focused app that works with Sewer Lines.  I have the attachment editor working great with pictures (jpegs) and  text files (txt). 

We have video files of Televising that we have been attaching in ArcMap.  Right now we are playing with files that are between the size of 3mb up to 40mb.  We can attach them with ArcMap and view them in ArcMap no problem.

I can attach them with our SIlverlight application.

The problem is with view them.  I'm wondering if I have to change a setting in the xaml code for the attachment editor

<esri:AttachmentEditor x:Name="MyAttachmentEditor" VerticalAlignment="Top" Margin="5,5,10,5" 
                             Background="WhiteSmoke" Width="280" Height="190" HorizontalAlignment="Right"   
                             Filter="All Files (*.*)|*.*|Image Files|*.tif;*.jpg;*.gif;*.png;*.bmp;*.mp4;*.wmv;*.mpg|Text Files (.txt)|*.txt" 
                             FilterIndex="1" Multiselect="True"
                             UploadFailed="MyAttachmentEditor_UploadFailed">
                            </esri:AttachmentEditor>


I tried to add the formats .mp4;*.wmv;*.mpg but I'm wondering if I need something else?

Tracing it in fiddler when I click to open the file I get the following message

{"attachmentInfos":[{"id":18,"contentType":"image/jpeg","size":3509640,"name":"WP_000016.jpg"},{"id":17,"contentType":"application/octet-stream","size":132904,"name":"WP_20111207_022403Z.mp4"}]}


and then these errors messages

[HTML]<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
  <title></title>
  <link href='https://community.esri.com/ArcGIS/rest/ESRI.ArcGIS.Rest.css' rel='stylesheet' type='text/css'>
</head>
<body>
<table width="100%" id="userTable">
<tr>
<td id="titlecell">ArcGIS Services Directory</td>
</tr>
</table>
<table id="navTable" width="100%">
<tbody>
<tr valign="top">
<td id="breadcrumbs">
</td>
<td align="right" id="help">
<a href="http://myservername/ArcGIS/SDK/REST/servicesdirectory.html" target="_blank">Help</a> | <a href="?f=help" target="_blank">API Reference</a></td>
</tr>
</tbody>
</table>
<div class='restHeader'>
<h2>Error</h2>
</div>
<div class='restBody'>
<div class="restException">
<h3>Server Error - The remote server returned an error: (404) Not Found.</h3><br/>
<b>Code:</b> 500<br/>
<br/>
</div>
</div>
</body>
</html>[/HTML]

[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
</fieldset></div>
</div>
</body>
</html>[/HTML]

The file is there I can see it at my rest endpoint - (See attached screenshot).  I also can't open it from the rest so I'm thinking it is not the code but maybe I need to tell it the default program or allow for larger files to down load from my server?

Any thought? 
Is there a setting in ArcServer for size of uploads and downloads??

Thanks
0 Kudos
2 Replies
ELIZABETHF_T_
New Contributor III
Did you ever get it to work?, I need to the same thing and I don't know where to start.
0 Kudos
kinemaster420
New Contributor

I think this post is very old and today I am facing something the same with my project. That's why I am here to get help from here. The below post is also similar to this one:

https://community.esri.com/t5/arcgis-storymaps-questions/storymap-video-goes-black-in-fullscreen-kinemaster

By the way thank you so much for this amazing platform. 

0 Kudos