I am able to convert video files in .flv format but I am not able to play the file in .aspx page.
Do I also need the relevant .swf file in order to run the .FLV file or only .flv is sufficient?
In either case, please provide with the solution.
Thanks in advance!
Adding a flv movie to an ASP.NET page is in no way different from adding one to a html page. Check play flv in html to get an idea.
You do not need the swf.
Alternatively, of course, you can use YouTube: http://www.youtube.com/youtubeonyoursite
Related
I've bundled some HTML and PNGs in my Qt app's resources file (for the help system). Unfortunately I can't find a way for the HTML to display images. I've tried various combinations of the QWebView's base URL, and different URLs for the <img> tag but none have worked so far.
To be clear, I want to be able to do something like this:
QString html = "<html><img href=':/resources/cat.png'/></html>";
myWebView->setHtml(html, ???);
Is this possible?
Try your resource format as:
qrc:/resources/cat.png
instead of
:/resources/cat.png
we have .css files that use images in such a format within webview and it works fine
We have a .swf file that was created by an external marketing agency some years ago...
300px X 600px ... it has an embedded link to a PDF that they also created..
We want to link to another PDF file that is more marketing friendly...
Is there a way to fake, using CSS, a link to this new PDF?
We have ceased contact with the old marketing agency and never had the original .fla file to edit.
I was thinking I could add a over the flash file...and somehow create an class for an a href to equal the size of the and link to this PDF...
Sound feasible?
Unless the file is encrypted, it's probably much easier if you use an swf decompiler and extract the pdf from there. Try SWFTools .
I have files in e pub format. I have to show their contents to the user. How do I read them in asp.net? Can it be done through javascript?
Authoritative? What could be better then a StackOverflow answer? I started from this question ( https://stackoverflow.com/questions/4870594/is-there-a-c-sharp-epub-library ) and gleaned a few usefull links:
Usefull information on displaying text in a web browser using javascript so it paginates nicely: HTML book-like pagination
A C# open source library for reading ePub files, the sample code on the home page includes how to get the contents as HTML: http://epubreader.codeplex.com/
There are other libraries which may come in handy if the ePub reader library on codeplex doesn't pan out: http://sourceforge.net/projects/epubsharp/, and http://www.aspose.com/categories/.net-components/aspose.words-for-.net/default.aspx
You can't do this with just JavaScript of course, you'll have a server side like a web service or code behind on your asp.net webpage which opens the epub file, extracts the contents as HTML and returns it to the client, but I think there is enough here to get you started.
Just to add then i suggest the steps:
Step 1: unzip the file using C#,.net code having some third party library.
Refer : recommend a library/API to unzip file in C#
Step 2: Check whether in the extracted folder there is only one file or more.
Refer: How do I find out how many files are in a directory?
Step 3 :Read the file using stream reader in c#.net
Refer: http://msdn.microsoft.com/en-us/library/aa328963(v=vs.71).aspx
http://www.dotnetperls.com/streamreader
Epub file is actually a zip archive that contains
xml files for meta data, table of contents etc
xhtml or dtbook (xml) + gif, jpeg, png, svg + css for content
To be able to display epub you will have to be able to handle all of the above. Here Reading ePub format you'll find what you have to do to open epub step by step - it's an example for iphone, but it should be enough.
Do the aspx, aspx.cs, web.config and accdb contain any meta data that can be read when I publish my site? (E.g. the information that can be required by reading out jpeg files).
If yes, how to view/edit this?
P.s. Except the properties shown in windows explorer of course.
Thanks in advance.
Whatever is in your aspx file, that's all what is there.
If you have added some metadata there (usually in the < head>< /head> tags), then it will be there, otherwise not.
The aspx.cs file is never really sent to the webbrowser, so there is no question of it having metadata or not.
aspx.cs web.config files are plain text files with different extensions, they don't contain embedded metadata (data which would describe the content, etc).
As for the .accdb files, you can check this question
Can someone point me to some code/tutorial on how to upload pdf files and store them, then moreover how to use a pdf reader to display the file as read only in an asp.net application.
Is there a PDF reader already in the visual studio toolbox?
The approach I would use in this situation is to upload the PDF as you would any other file, then use a tool like GhostScript to convert the PDF pages into image files that you can show in ASP .Net.
Here's a tutorial doing that in C# http://www.codeproject.com/KB/cs/GhostScriptUseWithCSharp.aspx
Adobe provides (on acrobat.com) a free service which provides you with the ability to upload pdf (and also other types like doc...) and then embed a nice flash interface for displaying the files on your page.
It's pretty helpful as you can store some 5 gigs of files here.
But if you want to let the users upload their own files then this won't help you.
PDF is a final format file, ie its is read-only for the most part and can be embedded into the page via the <object> tag, except if you mean downloadable by the user.
Displaying PDF is generally done by rasterising to an image format for display (ie as an image on the page or via a richer interface (with zooming etc) through flash/silverlight etc.
You can use [GhostScript][1] to interpret PDF files and convert them to an image.
[1]: http://www.GhostScript .com
Uploading a PDF is just like any other file. Use the ASP.NET file uploader control:
http://www.codeproject.com/KB/aspnet/fileupload.aspx
In order to view the PDF in an ASP.NET application, you could either depend on Acrobat being there or use a PDF Viewer control.
The company I work for, Atalasoft, sells a PDF Reader add-on to our web viewer controls. You can learn more here: http://www.atalasoft.com/products/dotimage/pdf-reader