i write a code using asp.net C# to generate a thumbnail when a video file selected using fileupload control, and display it in gridview. so, what i wanna do is when image in gridview was clicked, it should play the video corresponding to the video where the particular thumbnail is created without involving database?
There must be a Jquery plugin that solves the problem. I know there is many jQuery video plugins out there, just search for it. Why would you involve database? Can't you just include video files in your project and create a link from your images?
I dont know if this will solve your problem but worth checking out:
Simple jQuery video plugin
If you decide to use database I would suggest to keep it simple and use MySQL which is free and easy to setup.
Related
I have images stored in a SQL Server database with datatype image. I want to retrieve them and convert them to bitmap, and use them to create an asp.net web form image gallery for an online shopping web site.
Should I use <asp:Repeater> control, <asp:GridView> or data list control?
I don't want to use image path stored in the database
It's sad that the experts here are asking you questions as if you already know how to solve your problem which it is clear from your question you don't. Let me try and give you a little background and direction and I think you will be able to get closer to solving what you want to do.
Your images are just blobs in your sqlserver database which has no direct connection the web. The only way you can show images is you need to basically put them into an img tag with src= the location on your web server. What needs to happen is the location on the web server you choose must instead of reading a file from the file system of the server, must somehow grab the image from the database and then stream those image bytes to the img tag on the page.
THere are multiple ways to do that in asp.net. The easiest is a handler or ashx file (don't even know if those are supported anymore).
At anyrate, here is a link that might help. You might try googling something like "display image from sql server on asp.net" and see what else comes out. Obviously, lot's of people do this and you will to soon.
Good Luck.
https://www.aspsnippets.com/Articles/Display-image-from-database-in-Image-control-without-using-Generic-Handler-in-ASPNet.aspx
I'm currently working on a project that requires OneNote automation. Now I need to copy images from a page to another. I've found out some APIs on the Microsoft site like GetPageContent, UpdatePageContent to do this. Currently I am manually copy the one:Image Data into the new page. It works but to retrieve all the binary images takes quite a time. Is there any easier approach to achieve this? I've tried to use the Callback ID but it seems that a copied image gives a different ID so I can't just copy that.
I'm using Onenote 2013.
Regards,
ShiroYacha
There isn't a way to refer to the image that exists on another page when inserting an image to a page. What you are doing by copying the one:Image data is the only available approach for this.
I have a admin panel where i am uploading some video and settings some of its parameters manually to save it in database fields, like FileName, FileSize in Mb and Video duration.Now the requirement changed and it became something this, immediately after selecting a video file (either of them avi, mpeg, mp4, mpg, dat or vob etc), in a file upload control, the properties of the video file will get immediately set to its corresponding label or textbox.
I have tried a lot but unable to find any event related to the same. Also one more issue i faced while getting the duration of the video. I have tried DirectShow and FfMpeg but of no use. So basically i am stucked with the problems where I need your help. I am only able to get the file name immediately in javascript. So i need your suggestions.
How To retrieve the duration of video,immediately after video selection in fileupload control either in javascript or c# (any open source managed lib will b heartily welcome).
What you can do is create a client app to upload, that can collect the information you want from user's machine.
Another approach is to upload to the server, process the information you need to and then send it back to browser, but that may take a while and it won't be instant like after selection.
For a lib to work with video, haven't used any, but you can try VLC.NET and this in C#, for javascript i think it will be hard to find if there is any.
I want to upload an image and want to show a particular part of image in the thumbnail of particular size. I want to customize the thumbnail look.
I think it is a combination of an ASPX page, some jQuery plugin like Image Crop (http://www.webresourcesdepot.com/jquery-image-crop-plugin-jcrop/) and a handler which accepts the changes made to the image using an AJAX call.
I think it would be pretty easy as long as the jQuery plugin supports the right events. Jcrop supports an onChange event, which you could use to send certain coordinates to a handler.
Edit: Someone already did this and wrote about it: http://www.omerfarukzorlu.com/post/ASPNET-Image-Croper-Component-with-JCrop.aspx
PS. Not sure about the downvoting. It is a new user, but StackOverflow does not supply complete solutions for most cases, but just tips and pointers to find the solution yourself.
In my current project I have the following situation: A multipage PDF gets rendered by some nasty software into a flash film. My job is to display that rendered flashfilm (will be rendered as file) in my current asp.net application.
I don't know what the rendered flashfilm will look like, but I assume all flash files behave the same? Or are there differences I should know about.
What options do I have to display that flashfilm? Does ASP.net support some built-in object oriented control that allows me to display flashfilm?
You can easily display any flash file by using a plethora of techniques. And it's not built-in, but there are a number of controls and other libraries built by the community to deal with displaying flash content in asp.net, such as Flash Control (http://flash-control.net/)
what you refer to as a flash film is a .swf file. the recommended way to embed .swf files is SWFOBject , a javascript library
http://code.google.com/p/swfobject/
now, i'm no asp specialist , but you may be able to fill the gap between javascript & asp.
hope it helps!