Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Which plugin should i use for displaying images of jpg,gif,png types

  • 9 Antworten
  • 4 haben dieses Problem
  • 6 Aufrufe
  • Letzte Antwort von havefun

more options

i'm developing a web application where i need 2 display images and videos. videos are working fine but not able to display images using object tag since not able to figure out correct plugin

i'm developing a web application where i need 2 display images and videos. videos are working fine but not able to display images using object tag since not able to figure out correct plugin

Alle Antworten (9)

more options

There shouldn't be a plugin needed to display image or media files.
If such files are send with the correct content type by the server then it should work.


<object data="http://<link_to_image" type="image/jpg"> </object>

data:text/html;charset=utf-8,<object data="https://support.mozilla.org/media/img/avatar.png" type="image/png"> </object>
more options

It doesnt works for me. Even for video if i disable media player plugin it is not working because mime type for my video extension is available in media player plugin only. so i need to know which plugin can support mime type of image/jpg so that image can be displayed

more options

Can you post some sample code to show what you want to achieve?

more options

C# code

if (galler.RowCount > 0)

{
       if (galler.s_IImageCategoryId == "2") // for Wall Photos
             {
                    drRowsShare["Type"] = "image/jpeg";
                    drRowsShare["UserShareImageLoaded"] = AppDomain.CurrentDomain.BaseDirectory + "/WallPhotos/" + galler.IUserId + "/" + galler.s_SImageName;
              }
              else if (galler.s_IImageCategoryId == "4")  // for videos
              {
                        drRowsShare["Type"] = "video/x-ms-wmv";
                        drRowsShare["UserShareImageLoaded"] = AppDomain.CurrentDomain.BaseDirectory + "/WallVideos/" + galler.IUserId + "/" + galler.s_SVideoName;
               }
              drRowsShare["GalleryId"] = GalleryId;
 }

Aspx code:

<object data='<%# Eval("UserShareImageLoaded")%>' type='<%# Eval("Type")%>' height="250" width="250">

<param name="autostart" value="false" />
</object>
</object>

more options

You can try type="image/jpg" for the image and type="application/x-mplayer2" for the media file to see if that works better

more options

still same problem exists. I m not able to find any difference with the change

more options

Do you have a sample page online that has the problem?

more options

no i dont have. i'm working in localhost

more options

i'm completely changing my logic so its not required now. anyways thanks for your kind replies