S
sygsix
I am trying to create links to file that have been uploaded and am
having problems. Up until now I've always known the content type, and
as such have always put a
response.setContentType("application/x-msword"), for example, in my
class.
But now the user can upload x files, of any type. So my question is:
Is there any way to get the content type from the binary data stored in
my database, to be able to set the response type accordingly? Or do I
have to save that info somehow in my database as well? (A column for
"content_type", for example ...)
Many thanks in advance,
syg
having problems. Up until now I've always known the content type, and
as such have always put a
response.setContentType("application/x-msword"), for example, in my
class.
But now the user can upload x files, of any type. So my question is:
Is there any way to get the content type from the binary data stored in
my database, to be able to set the response type accordingly? Or do I
have to save that info somehow in my database as well? (A column for
"content_type", for example ...)
Many thanks in advance,
syg