#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    26
    Rep 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
  2. #2
  3. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    26
    Rep Power
    0
    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..

    .....

IMN logo majestic logo threadwatch logo seochat tools logo