Vishful thinking…

Should you care about the "UseMimeData" property on the .NET ADF Map control?

Posted in Uncategorized by viswaug on April 4, 2008

The ‘UseMimeData’ property tells the ADF whether to request a stream of bytes or a URL. This property is set to TRUE by default. In this case, the ADF is going to store the stream of bytes for the map images into the session storage. If the property is set to false, the image is written to disk in the virtual directory specified and passed back to the browser as a URL. Setting the ‘UseMimeData’ property to TRUE and streaming images from the session is fine when the in-process session storage is used. But other providers like SQL Server is used for storing the session, it is wise to set this property to FALSE and return URLs. This will save the added overhead of serializing everything into the SQL database on each map draw or other draw operations. Setting this property to FALSE will force the MapServer to use its output directory to write out the images and the associated URL will be passed on to the browser. When specifying the path for the virtual directory property on the map control, specify a relative path as an absolute path doesn’t seem to work.

4 Responses

Subscribe to comments with RSS.

  1. steve said, on April 8, 2008 at 4:15 pm

    Which do you think is more reliable – in proc sessions and MIME or URL’s? We all know server has a tendency to not draw tiles…

  2. Vish said, on April 8, 2008 at 5:22 pm

    Hi Steve,

    I think setting the UseMimeData to false will be more reliable but may not as fast as when using InProc session. Just because the ADF will just be relaying URLs which should be more reliable.

    Thank You,
    Vish

  3. Gabi Voicu said, on April 29, 2008 at 5:14 pm

    What path should I specify for the Virtual Directory of the Map control when changing UseMimeData to false?

    …none that i have tried worked….i get the invalid virtual path error message

    these are the virtual paths for the output directories from server properties in ArcCatalog

    directory name……..c:\arcgisserver\arcgisoutput
    virtual directory…..http://ags.co.collin.tx/arcgisoutput

    directory name……..c:\arcgisserver\proxyoutput
    virtual directory…..http://ags.co.collin.tx

    thank you
    Gabi

  4. viswaug said, on April 29, 2008 at 6:33 pm

    Hi Gabi,

    Try “/arcgisoutput/”

    Vish
    http://www.Vishcio.us


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: