|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Do you mean "play videos in the browser" ?
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
yep.. but solved it... changed the mime type to video/x-ms-wmv and it works....
strange though.. video/mpeg is a recognized mime type.. ..... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > mime types and outputStreams.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|