On Sep 22, 3:40 pm, Veerle <
veerlevandersl...@gmail.com> wrote:
> I have the same problem on my HTC Magic ... can you tell me how you
> did get it working?
Ah. Good question. It was the first technical problem of many that
I
encountered and solved, along the long path to building my .Net
Dimension
Server class library, which now works, pretty well. Therefore, it's
hard
to remember how I solved it.
<thinks>
Yes! Now I remember. :-)
Clayton made a small change to the application (make sure you have
the latest version), a couple of weeks ago, so no changes to the
server
are required, any more. All you have to do is set the
ContentType response header to "application/gamaray-gddf".
Here is my VB.Net code that does it:
-begin code-----------
Const CONTENTTYPE As String = "application/gamaray-gddf"
Const DISHEADER As String = "Attachment; Filename="
Const DISHEADER_NAME As String = "Content-Disposition"
With res
.ClearHeaders()
.RedirectLocation = GDDF_FileName
' set the http content type
.ContentType = CONTENTTYPE
' initialize the http content-disposition header to
indicate a file attachment with the given filename
.AppendHeader(DISHEADER_NAME, DISHEADER & Chr(34) &
GDDF_FileName & ".gddf" & Chr(34))
'clear the content and write out the dimension to it
.ClearContent()
.Write(XMLDimension)
End With
-----end code ----------
...where res is the current HTTP response and XMLDimension is a
string containing the entire contents of the Dimension XML file.
You'll have to translate that into your own coding language if
you aren't working with VB, but it should be pretty easy to work out.
When you do have any similar code in another language, please let
everyone else, here, know, so wheels don't have to be re-invented. :-)