
May 10th, 2002, 04:23 AM
|
|
Member
|
|
Join Date: Jan 2002
Posts: 26
Time spent in forums: 10 m 42 sec
Reputation Power: 0
|
|
|
mime types and outputStreams..
Hi,
I have some mpegs and avi files in my database (MySQL) and am trying to make them downloadable in the browser...
The mime type (content type) I am using for them are video/mpeg and video/* ...
The relevant code for making them downloadable are:
response.setContentType(multimediaDataFields.getContent());
response.getOutputStream().write(multimediaDataFields.getData());
The above two lines work perfectly well for all kinds of documents,images,pdfs etc... except for videos...
Does any one hv a solution for my problem???
Thnx a bunch,
sgaucho
|