How to fetch mpg file from content repository
Hi All,
I have uploaded a mpg(video) file in content repositoy. But I am not able to fetch
it and display it using embed tag.
is anybody aware of a right method to do the same?
Thanks in advance.
I was thinking there might be a difference in how the browser handles a
path with a space when typed into the address bar vs. how the browser
plugin/activex-object handles a path with a space when it gets it from
the <param> or <embed> tag.
Otherwise, I'm not sure what's going on. How content displays on
someone's computer mostly depends on the persons's computer, how it's
configured, what's installed, etc. If you can get the Node's BinaryValue
from the WLP server and it has the correct ContentType and the correct
bytes, then, at that point, WLP is no longer really involved.
Do PDFs, word docs, audio, shockwave, and other binary media types
stored in a WLP content repository display correctly with
<object><embed> tags in your browser?
Vijay wrote:
Hi Gregory Smith,
There is no problem with path at all. The same path if I write in address bar
of browser it opens a widows media player and plays the video file.
Pls suggest.
Vijay B.
Gregory Smith <[email protected]> wrote:
See if using a path of
http://etgjw4:7001/JWWebApp/ShowBinary/BEA+Repository/Ads/AdsPopup/ad1//image
(note the + between BEA and Repository) changes anything. If so, you
can
use the com.bea.content.manager.ContentHelper.pathInfoEncode() method
to
URLEncode the node path, e.g.
http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<%=ContentHelper.pathInfoEncode(node.getPath())%>//image
or, the <cm:getProperty> tag supports this automatically, e.g:
http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<cm:getProperty
name="cm_path" node=<%=node%> conversionType="url"/>//image
(You might need to double check that code in workshop to make sure it
compiles).
Greg
Vijay wrote:
Hi Gregory,
When I type the repository path //property name in the browser's addressbook,
It opens a windows media player and plays the video file.
But when I copy the same path and paste it in embed/object tag it justloads up
a windows media player. When I see the error details it says "Cannotopen. Please
verify that the path and filename are correct and try again." Thereis a advanced
button on error window clicking on that it shows "The specified streamtype is
not recognized. (Error=C00D07E2)
Cannot open. Please verify that the path and filename are correctand try again.
(Error=C00D07E2)".
can you give me a solution on this?
The HTML code that I have written is attached to this query.
Thanks alot,
Vijay
Gregory Smith <[email protected]> wrote:
First, make sure the BinaryValue of the property of the Node has the
correct content-type (should be video/mpeg, or similar). This can be
in
1 of the following ways:
1. Look in the BLOB_CONTENT_TYPE column of the CM_PROPERTY table.
2. Get the Node (e.g. with <cm:getNode>), then get the BinaryValue
(with
<cm:getProperty>), and call the getContentType() method of the BinaryValue.
3. Show the ShowBinaryServlet on the Node in the browser and see what
your browser does. The URL would probably be something like
http://<server>:<port>/<webapp>/ShowBinary/<path to node>, e.g.
http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynode.
You
can bring up the properties for that in IE, or Page Info (Ctrl-I) in
Mozilla; that should tell you the content type the browser received.
If it's not something like video/mpeg, then that's why it's not working.
Make sure you browser has support of mpegs in <embed> by creating a
simple html file with an <embed> to an mpeg file (don't use the server
at all). If that works and the content-type of the node is correct,you
should be to create an html file with an <embed> to the URL in #3 above,
e.g.
<embed
src="http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynmode">
</embed>
If that works, make sure your jsp is generating the correct HTML.
Greg
Vijay wrote:
I am using weblogic 8.1.
Gregory Smith <[email protected]> wrote:
What version of WLP are you using?
Vijay wrote:
Hi All,
I have uploaded a mpg(video) file in content repositoy. But I am
not
able to fetch
it and display it using embed tag.
is anybody aware of a right method to do the same?
Thanks in advance.
New Web Application Page
Similar Messages
-
How to fetch an image from bea repository.
Dear ALL,
I have two binary properties named image and altImage in the content item of one
of the nodes in the virtual repository. Looks like, BEA arranges all the properties
alphabetically and when I use showBinary servlet to display a binary property,
it displays the uploaded image from the altImage property(because it starts with
a alphabet). But when I make the other image property PRIMARY, ShowBinary servlet
displays the uploaded image from the image property but I could not show uploaded
file from altImage property.
The SYNTAX used by me is,
<img src="<%=request.getContextPath() + "/ShowBinary" + conItem.getPath()%>" width="791"
height="150" border="0" >
Is there a way where I can show the selective binary(jpg/gif only) properties
using /ShowBinary, if no, can you guide me to another way of doing the same.
Vijay B.Vijay,
Sorting on search will only work with system properties. For a list of system
properties please take a look at com.bea.content.expression.Search on the javadoc
site at http://e-docs.bea.com/wlp/docs81/javadoc/index.html. I'll add the ability
to sort on non-system properties as a feature request for next release.
James
"Vijay Bijjargi" <[email protected]> wrote:
>
Thanks alot.
I have one more query. I would appreciate if you help me. Thanks in advance.
There is a attribute(property) of contentselector
named sortBy(even in cm:search). But when I run my jsp, It could fetch
the
contents from the repository but It could not sort by a specified field
of
a repository.
Can you pls tell me the right way of using it or why it is not showing
me
the expected result.
Thanks.
Vijay Bijjargi
[email protected]
Mumbai, India
"Markus Blumrich" <[email protected]> wrote:
Vijay, I brought this up during beta testing and the response from BEA
was
that you would be able to use ShowBinary on any property in GA by appending
the name of the property with two slashes to your URL... example:
/ShowBinary/my/url//myBinProperty
I haven't had time to see if it works yet,
Markus
"Vijay Bijjargi" <[email protected]> wrote in message
news:[email protected]...
Dear ALL,
I have two binary properties named image and altImage in the contentitem
of one
of the nodes in the virtual repository. Looks like, BEA arranges allthe
properties
alphabetically and when I use showBinary servlet to display a binaryproperty,
it displays the uploaded image from the altImage property(because
it
starts with
a alphabet). But when I make the other image property PRIMARY, ShowBinaryservlet
displays the uploaded image from the image property but I could notshow
uploaded
file from altImage property.
The SYNTAX used by me is,
<img src="<%=request.getContextPath() + "/ShowBinary" +conItem.getPath()%>" width="791"
height="150" border="0" >
Is there a way where I can show the selective binary(jpg/gif only)properties
using /ShowBinary, if no, can you guide me to another way of doingthe
same.
Vijay B. -
To fetch XML files from database AND regarding barcodes
Hi !!
I am very new to this forum...this is my first mail to this forum...
1.) Actually I would like to know how to fetch XML files from database and then how to get the datas from that XML files???Right now i am using struts frame work...If u anyone send some sample code for this one,it is Very helpful for me.....
2.)Using java ,how to generate Barcodes?In database I have Some serial number.While I try to display the serial number in Front end ,I should display with Barcode Corresponding to that number.Plz send some sample codes if u have.....
Thanks in ADVANCE,PonJAVA wrote:
Hi !!
I am very new to this forum...this is my first mail to this forum...
1.) Actually I would like to know how to fetch XML files from databaseStart with a JDBC tutorial. Check out DAO Pattern and Hibernate as well.
and then how to get the datas from that XML files???Google Java & XML (there are many ways to do this
Right now i am using struts frame work...Okay...
If u anyone send some sample code for this one,it is Very helpful for me..... You haven't provided any detail regarding your task so there's no way anyone could post code for you.
2.)Using java ,how to generate Barcodes?Search Google
In database I have Some serial number.While I try to display the serial number in Front end ,I should display with Barcode Corresponding to that number.Plz send some sample codes if u have.....Try a JSP/Servlet tutorial. -
How to open an InDesign file from CMIS repository?
We are using CS SDK 2.0 , looking to use CMIS to keep versionning of .indd file. The uss case as following:
form our de4veloped InDesign pluging, user click a button
the button will open a .indd file from cmis repository
plugin check-out the file, open it within InDesign IDE
user make changes
user make save
the plugin export a pdf and swf files from the current document, if the files exists it will update, aslo on CMIS repo to keep also versions of exported pdf and swf, if files not exist in first time .. it will create
when user clos the document , it will check it in.
the problem there is no sufficent sample code for, even was thinking to use Adobe Drive, but there is no Adobe Drive SDK for Flex.
i used to fuse the sdk, but
private function getFileByPath(sPath:String):Fileable {
appStatus = ">> get File By Path";
message = "";
viewEnabled = false;
var request:GetObjectByPathRequest = new GetObjectByPathRequest(session);
var oFileable:Fileable;
request.path = sPath;
request.execute(onSuccess, onError);
function onSuccess (event:GetObjectByPathResponse) : void {
oFileable = event.object;
//var oDoc2:Document = new Document(event.object);
doc = event.object as Document ;
//children = new ArrayCollection(vectorToArray(event.target));
appStatus = ">> getFileByPath : Success";
viewEnabled = true;
return oFileable;
private function checkOutFile(oFile:Document):Document{
appStatus = ">> Check Out File";
message = "";
viewEnabled = false;
var request:CheckoutRequest = new CheckoutRequest(session);
request.object = doc;
var oDocument:Document;
request.execute(onSuccess, onError);
function onSuccess (event:CheckoutResponse) : void {
oDocument = event.object ;
appStatus = ">> Check Out File : Success";
viewEnabled = true;
return oDocument;
private function openTestFile():void {
appStatus = "Open Test File";
message = "";
viewEnabled = false;
var oFile:Fileable = getFileByPath("/Collaboration/test.indd");
//var oDoc2:Document = new Document(oFile);
var oDoc:Document = checkOutFile(doc);
i do not know what method in the CS SDK to open document fom active window and how to map CMIS Document to com.adobe.indesign Document ?Dear Seoras
i fixed the to return the cmis path:
public function resolveRemotePath(file:File):String
if (file.nativePath.indexOf(LOCAL_FILE_CACHE.nativePath) != 0)
return null;
var remoptePath:String =file.nativePath.substr(LOCAL_FILE_CACHE.nativePath.length);
trace("resolveRemotePath [11] : "+ remoptePath);
if(File.separator!="/") {
//var pattern:RegExp = /(\/)/g;
var pattern:RegExp = /(\\)/g;
remoptePath = remoptePath.replace(pattern ,"/");
trace("resolveRemotePath [22] : "+ remoptePath);
return remoptePath;
i have another issue, why everytime update the generated pdf it creates new pdf file with same name in the cmis repo .. does the pdf is not updatable over the cmis service ???
Regards -
How do I Read a .js File from Mime Repository
How can i read a .js file from Mime Repository,
Mime Respository is for Re-Usability
Since i need to call a function from a .js file again and again, i keep my .js file in Mime Repository so that i can call the function anywhere by calling the .js File.
I have kept my .js File in a Mime Repository but when iam calling the function from Portal the function is not being Triggered, Can i know why it is behaving like that.Not required right now.Not resolved
-
how to transfer file from ipod touch to i tunes. i have files in my ipod , ut itunes is new so its telling if u sync the ipod all the files will be replaced but no files in the itunes.. so kindly help me how to transfer the files from i pod to itunes......
Some of the information below has subsequently appeared in a document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991
Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was designed for you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchased content.
iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
- Senuti - http://www.fadingred.com/senuti/
- Phoneview - http://www.ecamm.com/mac/phoneview/
- MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/
- Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
- Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
- iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
- Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
- 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141 - dates from 2008 and some outdated information now.
Copying Content from your iPod to your Computer - The Definitive Guide - http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/ - Information about use in disk mode pertains only to older model iPods.
Get Your Music Off of Your iPod - http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod - I am not sure but this may only work with some models and not newer Touch, iPhone, or iPad.
Additional information here https://discussions.apple.com/message/18324797 -
hi all, i've just switched to apple after many years using MS OS! I'm now using iMac desktop 21.5" with 2.9GHz processor and latest Yosemite software.
How do I transfer files from one USB memory stick to another USB memory stick on the iMac? cheers, linley94Plug in the memory stick and it should open then create a New Folder and drag and drop the contents from the memory stick to the new folder you created. Remove the original memory stick all the information should be in the new folder you created. Now plug in the new memory stick with nothing on it when it opens drag the folder with the contents from the original memory stick folder and all into the new memory stick that opened and there you have it.
CHEERS
DON -
Copy any kind of file from content server to network directory
Helli All
The question:
I nee to copy any kind of file from content server to any network directory.
Explanation
1. transaction CV02N
2. There is attached file for a document in tab "Document data/Original"
3. This file stored in content server
4. I wrote program code that creates path of the stored file that finally looks like
http://cont:8888/ContentServer.dll?get&Version=.....*...&compid=app1.doc
where app1.doc is file's name and I have to copy this file into network directory.
The problem is that this URL open the file instead of just pointing to him
so that no function or method can't see this file and as the result I got message that
the file doesn\t exist.
Please, advice.
Regards,
Daniel.many many thanks for ur help. i really did not check the URLClassLoader properly.
but i would like to hear a little more from u. i have another question. here in this code (provided earlier), i searched for attribute values in the manifest file, then again i load the required class file from the very url. is it not good to retrieve the whole jar file first, and then check attribute values inside manifest file and load the required class files from that jar file that is already downloaded without going to that url again? how can i do this? -
How to Upload Mutilple Images in content repository?
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd be displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
SureshSuresh, your html specifies an image at resources/images/privacy.gif - is that
image in your repository at the correct relative position to where yout html is?
Your html and repository structure must match. So if the html you posted is at
/BEA Repository/foo.html
then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
James
"Suresh" <[email protected]> wrote:
>
>
>
Hi James
Here i have attached my sample html and image
My Repository Structure is as follows :
Virtual Content Repository
BEA Repository
MainImage type image
Privacy type i created
----StartDate
----EndDate
----File Upload
My HTML
<HTML>
<HEAD>
<TITLE> New Document </title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</head>
<BODY>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="norBold"><img src="resources/images/privacy.gif"
width="123"
height="73">Privacy
Policy</td>
</tr>
<tr>
<td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
</tr>
</body>
</html>
and
one image
Thanks in Adv
Suresh
"James Owen" <reply.to@newsgroup> wrote:
Suresh, how is your content structured and what does your html looklike?
If you
could post examples, that would be helpful.
thanks,
James
"suresh" <[email protected]> wrote:
Hi
How to Upload Mutilple Images in content repository?
I have a html which shd be displayed and it has 3 images which shd
be
displayed
in the same page
Here i am able to display the HTML uploaded in content repository
but the images are not displayed,since the path is not valid for the
images.
Can any one hint me in this,
wating for the reply
Thanks in Adv
Regards
Suresh -
How do I migrate files from my MacBook (specs below) to my still in the box MacBook Pro running OS 10.6? Yesterday, I ran Software Update; it returned the message that all my software was up to date / no updates available.
I am particularly concerned with moving the 7000+ photos in iPhoto. I have photos organized into folders and albums and want to preserve this structure. I use this photo data as part of my lecture content.
Thanks for your help.
Best,
lauri with poodles
(the big standard poodles without the goofy Hollywood haircuts)
Specs - Old laptop
MacBook 13"
OS 10.4.11
2 Ghz Intel Core 2 Duo
2 GB 667 Mhz DDR2 SDRAM
112 GB total disk space
59 GB available
using iPhoto 6.0.6
Specs - New laptop
MacBook Pro 15"
OS 10.6
2.0GHz Quad-core Intel Core i7
4GB 1333MHz DDR3 SDRAM - 2 x 2 GB
128 GB Solid State DriveHi, Lauri. Welcome to Apple Support Communities.
http://web.me.com/pondini/AppleTips/Setup.html
From Ronda with Pomeranians. -
How to retrieve ascx file from the Template folder in SharePoint2013
My issue is, I have WSP only so I changed into zip and got my all web parts and also one dll file after that decrypted dll and got some C# code
mixing with some system generated code but not ascx file that is for front-end part. So my question is how we can retrieve full flash solution if not, at least ascx files So if we were on SharePoint 2010 we could have got those file from __Template__
folder but It’s on SharePoint 2013 and not able to get ascx.
If we can do so, than will be easy to get the task to be done
Suggestions would highly be appreciated. Thanks in Advance.
AshishHi Amit,
you can not move specific changes from Dev to production.
but you can follow this process to make your workflow as it is as in Dev:
Create a new workflow on the new list in Product.
Create at least one step, one condition and one action in this workflow.
1. In Dev server open your .xomal file as XML and copy the entire contents.
2.In Production server Open your .xoml file as XML and Paste the entire contents
3. repeat this operation for the xoml.rules file
4.Double click the .xoml file for the new workflow to open the workflow in the Workflow Designer and click Check Workflow to verify no errors and then click Finish to ensure the workflow is saved.
Whenever you need to make changes apply the same.
Please Mark Answer and Vote me if it will to resolve your issue -
How to import mpg files & quick time question
Hello. I found some previous answers here and followed them, which brings me to now. I bought the QT 6 MPEG-2 PLAYBACK-MAC OS X-INT plug in to allow me to bring mpg files from my sony digital camcorder. I keep getting a message that 'this file is not a movie file'. I don't know how to tell if the MPEG-2 plug in is installed, how can I find out in Quick Time? I have Quick Time Pro.
What application would be best for me to start editing movies? I have IMovie 6.
Any help is greatly appreciated.
thanksHi Trib and welcome to the forums!
Mpeg2 is the standard compressed final delivery format of a DVD, and is not intended for further editing.
You need to convert your mpeg2 files to a DV stream that you can edit in iMovie 6.
For that you need mpegStreamclip:
http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
which is free, but you must also have the Apple mpeg2 plugin which you have already installed. -
how I can export files from CS5.5 to send for further editing in CS6 and no lose quality?
If all you need for further editing is the contents of your Timeline,
then you should follow Harm's sage advice.
Lagarith Lossless Video Codec
http://lags.leetcode.net/codec.html
Ut Video Codec Suite
http://www.videohelp.com/tools/Ut-Video-Codec-Suite
But, if you will need all of your source media files to continue the edit,
you should consider using the Project Manager.
Trim or copy your project
By using the Project Manager, you will be continuing the edit
with the original media files and there will be no quality loss.
Be aware that once you have edited the project in CS6,
it will be problematic (but not impossible) to return to edit in CS5.5. -
How to add .m4r files from my computer to my tones in iPhone 6 iOS 8.1.1 ?
You've sycned other content via your computer's iTunes to the phone ?
You can sync photos to your phone via your computer's iTunes : connect your phone to your computer, click on its icon towards the top left of the iTunes screen, and select Photos on the left-hand side of the screen :
Photos that you sync from a computer can't be deleted directly in the phone's Photos app, instead they are deleted by not including them in the next photo sync - so you will need to include all photos that you want from your computer in each photo sync. -
Slow content retrieval from content repository on Weblogic8.1 portal server
The performance of content retrieval from content repository on Weblogic8.1 portal
server is very slow. Image retrieval takes too much time. Is there any solution
or workaround to improve the performance.More information is required to help you.
What is the time for retrieval? What is the time for the entire page load?
What database are you using?
How many Nodes are in the repository?
What do the Node types (a.k.a. Object Classes) look like? How many
properties per Node?
If using Oracle or MSSQL, did you run statistics.sql?
(http://google.bea.com/search?restrict=wlp81&ie=&q=statistics.sql&site=bea&output=xml_no_dtd&client=bea&access=p&lr=&btnG.y=0&btnG.x=0&ip=216.148.48.12&proxystylesheet=http%3A%2F%2Fdev2dev.bea.com%2Fimages%2Fdev2dev.xsl&oe=&filter=p)
Have you adjusted or disabled the content caches?
Greg
Koshy Varghese wrote:
The performance of content retrieval from content repository on Weblogic8.1 portal
server is very slow. Image retrieval takes too much time. Is there any solution
or workaround to improve the performance.
Maybe you are looking for
-
hello, there are a few projects of enterprise quality which I am developing in java swing. I found out through research that many or rather most people involved with java believe that swing is ready for enterprise class robust desktop applications. s
-
I can only delete photos one at a time. Why?
Why can't I delete multiple photos after they've been moved to trash? I can't empty the trash. If I put them into trash one at a time and empty it one at a time, it works. There must be an easy trick to deleting lots of photos, all at once. Help,
-
No longer able to watch TV/video?
I have the 30GB Video iPod. Originally I had it on my Dell laptop. At that point I was able to download and watch LOST. A year ago, I purchased an iMac and transferred my iTunes. I went to download a new television program (first time since the Mac)
-
hi I have a table EMP(empname varchar2(30), empno varchar2(20), add1 varchar2(60), add2 varchar2(60), sal number(10,2), comm number(10,2) i want create a report and parameter form and run it thru form builder can it possible i select column name in p
-
Implementing Comparable interface? Help please.
Why am I getting the following error? Exception in thread "main" java.lang.ClassCastException: java.lang.Double cannot be cast to chapter10.RectangleJust look at the test class and ComparableRectangle class if you can find the bug. Here are the 3 of