How to read the metadata in the SWF ?
Hi,
Is there anyway to read the metadata which we are adding to swf as a file info in the Publish Settings.
I just want to know that, this metadata added to the swf header ?
Thanks.
Hi
look at this thread your problem is solved here
File Adapter
Regards
Abhishek
Edited by: Abhishek Agrahari on Dec 16, 2008 11:37 AM
Similar Messages
-
How to search to files based on the metadata of the category in CS
Hi,
Can any one tell me how to search the files in the content services based on the metadata of the Category,I know how to search based on the Category using
public static void attributSearch(String searchString)
throws FdkException, RemoteException, Exception
// get the Manager instances
SearchManager sem = s_WsCon.getSearchManager();
CategoryManager cat = s_WsCon.getCategoryManager();
CommonManager cm = s_WsCon.getCommonManager();
FileManager fm = s_WsCon.getFileManager();
Item folder = fm.resolvePath("/idc/workspaces/BoardMembersProject", null);
AttributeRequest[] catAttr =
WsUtility.newAttributeRequestArray("ProjectCategory");
// create AttributeRequest to retrieve CATEGORIES attribute
AttributeRequest[] catClassAttr = WsUtility.newAttributeRequestArray(
Attributes.CATEGORIES, catAttr);
// define search options
NamedValue[] nv = WsUtility.newNamedValueArray(new Object[][] {
{ Options.SEARCH_VERSION_HISTORY, Boolean.TRUE },
{ Options.RETURN_COUNT, new Integer(100)
// get search expresiion
SearchExpression seExp = new SearchExpression();
// searchString ="ProjectCategory";
Item[] item = cat.getRequiredCategories(folder.getId(),catClassAttr);
seExp = new SearchExpression();
NamedValue[] attributes = item[0].getRequestedAttributes();
seExp.setOperator(FdkConstants.OPERATOR_HAS_CATEGORY);
seExp.setRightOperand("["+item[0].getName()+"]");
// search documents
NamedValue[] result = sem.search(seExp, nv, null);
// search result display
for (int i = 0; i < result.length; i++)
if (result.getName().equals(Options.SEARCH_RESULTS))
Item[] resulItem = (Item[]) result[i].getValue();
WsUtility.log("Kveni",resulItem);
if (resulItem != null)
for (int j = 0; j < resulItem.length; j++)
WsUtility.log("File " +resulItem[j].getName());
But how do one search Based on the attributes of the category??
thanks
kveniDownload the PM accelerator kit appropriate to your environment, and check out the TestSearch2.java example.
http://www.oracle.com/technology/products/cs/developer/contentservicesdev/contenservicesdevkit.html
Essentially you need to lookup the internal names of your category attributes, as well as have the internal name of your category class.
categoryClassName = ...; // e.g. AHC_XXX
attribute1name = ....; // e.g. CUSTOM_MYBOOLATTR
you then create a normal search expression such as
String attribute1Operand = "[" + categoryClassName + FdkConstants.SEPARATOR + attribute1name + "]";
SearchExpression expr1 = new SearchExpression();
expr1.setOperator(FdkConstants.OPERATOR_EQUAL);
expr1.setLeftOperand(attribute1Operand);
expr1.setRightOperand(Boolean.TRUE);
Matt. -
In iPhoto, how can I export images with the metadata — including the title and caption information — intact as part of the image?
Check those boxes in the export dialogue - Exporting From iPhoto
LN -
How to read printed text from the browser.
I have an API that take 2 parameters as query string and after validating it prints back 4 parameters on the browser itself like :
para1=abc
para2=xyz
para3=123
para4=pqr
now i want to use the value of these parameters further in my program, can anyone tell me how can i take the parameter values in variables.I can think of two choices offhand.
1. In addition to displaying the values, have your servlet or JSP write out a form with <input type="hidden" name="para1" value="abc"> fields in it, and a submit button. Your values will come back to you in the next post or get request. (If this is sensitive information, however, DO NOT do this unless you can re-validate the data, since it would be possible for someone to fabricate their own static page to submit bogus data.)
2. Put the data in the session object, using the setAttribute(...) method, and retrieve it on the next page using getAttribute(...).
You cannot really "read" the page that is visible on the user's browser.
Hope this helps.
Cheers!
Jerry Oberle -
I am trying to read the user Id from the submitted AD User request form( Catalogue AD User form. I need User Id,firstname and lastname inorder to prepopulate the common name as in this format - lastname,firstname (userid) for the user to be provisioned in Active Directory.
So after filling the AD User request form with User Id and Organization and submitting the request, I am trying to
prepopulate the common name in the process form before the provisioning.
The prepopulate adopter for the common name is configured to read the firstname, lastname and userid. firstname and
lastname variables are mapped to User definition and user Id is mapped to Process Data. In this setup I am not getting the
User Id value from process data, it is empty.
Is this a bug with OIM 11g R2 or I need to do it differently in order to read the user Id that user has entered in the
request form for populating the common name?
ThanksGhulam Yassen wrote:
How to get USER_ID and IP_AddressWhy exactly do you need this data and what do you plan to do with it?
The data is not reliable and trustworthy. IP addresses can easily be spoofed (a few seconds if you know what to do and how to do it). Also, IP addresses are not static. Users also do not use the same network device to access the database - different devices will have different IP addresses.
The o/s user on the client is supplied by the client driver. This can also be spoofed.
The user can also use a virtualised device - which means that recording the IP and o/s user seen from the server side, is pretty much useless and meaningless.
So if this data is intended to be used for auditing for example - it would be pretty suspect data to use for that purpose. -
How to read data after using the PRINT function in visual basic
I know the benchlink can capture the spectrum analyzer screen for me, but I want to integrate it into my application. I use NI spy to detect the communications from the benchlink and put it into my application. After sending the "PRINT 0" command, my "ilrd SpectrumAnalyzer, temp, 500" command doesn't work, giving me EARG error. Does anyone knows if it is because I can not define the temp to be string or some other problem?
b.t.w, the communications I get from NI Spy actually read some unknown characters from the instrument, what kind of data it is? Any idea how to use it?
thanks.Hello elm,
This is completely dependent on your instrument; if you are getting the data then you are halfway there. Look in your instrument's programmer's reference manual to see if they mention how the picture is encoded in bytes. There are so many different ways to encode a picture in binary that speculating and guessing would probably never yield the true result. If there is no mention in the manual, contact the instrument manufacturer.
Sorry I could not be of more help.
Scott B.
Applications Engineer
National Instruments -
How to read a file inside the JAR file
Hi All,
I want to save some preferences in a file called "preferences". I kept the preferences file under my java package.
If i am running the code inside the NetBeans 6.9 IDE it's working file. But once i have created a JAR and try to run the application, it couldn't find the path.
Please help me that how to resolve this issue. I don't want to save this preferences file outside of my JAR (i.e) within my java package.
Here is the code,
package mypackage;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
public class ReadFile
private void writeFile()
try
OutputStream out = new FileOutputStream(getClass().getClassLoader().getResource("mypackage/preferences").getPath().replace("%20", " "));
PrintWriter writer = new PrintWriter(out);
writer.println("Hello Java!");
writer.close();
out.close();
catch (Exception ex)
System.out.println(ex.getMessage());
private void readFile()
try
FileInputStream fi = new FileInputStream(getClass().getClassLoader().getResource("mypackage/preferences").getPath().replace("%20", " "));
BufferedReader br = new BufferedReader(new InputStreamReader(fi));
System.out.println(br.readLine().trim());
br.close();
fi.close();
catch (Exception ex)
System.out.println(ex.getMessage());
public static void main(String[] args)
ReadFile read = new ReadFile();
read.writeFile();
read.readFile();
}If i run the JAR, i get the following error message,
{color:#ff0000}*file:\my jar path\jarname.jar!\mypackage\preferences (The filename, directoryname, or volume label syntax is incorrect)*{color}Thanks sabre150,
sabre150 wrote:
You cannot update a running jar file. I am sorry. I didn't know about it. Thanks to point out.
There are two ways I approach this depending on my exact requirements -
1) use the java.util.prefs.Preferences APII will try this one
>
2) if not already present I copy the preferences file from the jar to a known place. I use a directory in the user's home directory and normally make the directory name the program with a '.' prefix.
One cannot access files in a jar file using the File API. One needs to use the getResource() or getResourceAsStream() methods on Class or ClassLoader. -
How to read input data of the process which running fine
Hi Guys,
How to read the recently completed BPEL PROCESSes input data ( input xml) .
Please help me.
Regards
janardhanSome browsers behave differently, FireFox 2 generally works better than FireFox 3 and IE.
If you select the process that has run from the BPEL console in the instances tab you can select Audit or Flow. Audit generally works best at seeing the XML being past to each activity but the flow is nice to follow graphically. The major issue with the flow is that some payloads are displayed as a URL link. In IE this sometimes doesn't work. If this is the case go to the same point in the Audit and the XML will be there. This is also a good place to copy and paste xml for documentation purposes.
cheers
James -
How to read from file just the 2nd line onwards?
hi guys can anyone help me?
how to read from the file if the file was like this
2 2
2 1
1 3
and i want to get the 2 1 ,just the 2nd line and the 3rd line?
i tried using the string tokenizer but it kept saying
no such element
i tried this code:
StringTokenizer cols = new StringTokenizer(s," ");
temp = (String) (cols.nextElement());
num_rows = Integer.parseInt(temp);
temp = (String) (cols.nextElement());
num_cols = Integer.parseInt(temp);
matrix = new int [num_rows][num_cols];
// to add all the values in the data file into an array
while ( s!= null ) {
StringTokenizer st1 = new StringTokenizer (s);
while (st1.hasMoreTokens()){
for (i=0; i<num_rows; i++){
for (j=0; j<num_cols; j++)
matrix[i][j] = Integer.parseInt
( st1.nextToken());
} // whilecan anyone please help me?
thanksThis will read the file witout the first line:
import java.io.*;
import java.util.*;
public class Read2
public static void main (String[] args)
try
FileReader file = new FileReader("f.txt");
BufferedReader buff = new BufferedReader(file);
String line = buff.readLine();
while (line != null)
line = buff.readLine();
System.out.println(line);
buff.close();
catch(IOException e)
System.out.println("IO Error");
} Noah -
How to read selected item of the dropdown listbox in dialog prgmming
hello to all,
i need one help.In dialog programming how to read the selected value of the dropdown listbox created in se51. the values are appering in listbox by using FM 'VRM_SET_VALUES' .and function code is also assigned to lisbox .but how to read that one particular value selected by user form the dropdown list.
thanks.hello mate
Try this following logic and code u will getting the answer
Here this example :
Let Name of the LIST BOX BE : LT
Code :
Data Declaration :
I_NATIO TYPE VRM_VALUES,
W_NATIO LIKE LINE OF I_NATIO
data: begin of itab occurs 0,
LT(10) type c,
end of itab.
**This query to data retrival
select x1 x2 into table itab form tbl .
loop at itab.
w_natio-key = itab-LT.
w_natio-text = itab-LT.
append w_natio into i_natio.
clear w_natio.
endloop.
**This code for setting values in the list box
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'LT'
VALUES = I_NATIO.
**This code getting the valu form the list box
CALL FUNCTION 'VRM_GET_VALUES'
EXPORTING
ID = 'LT'
IMPORTING
VALUES = I_NATIO.
**simply to print the values selected
write : i_natio-lt.
I hope this will help u out.
Anand -
How to read data/fields of the pdf form
Hi,
i want to orchestrate a process where input is interactive forma and output is xml data.
i mean i want to read data/fields of the pdf form.
Which activity do i use on workbench.
Regards
SunilDieter,
I am talking about 3rd senario, where we create one process on workbench, and pass filled pdf as input and then output of process is xml file.
What is the process name here (Like renderPDF process) which extract data from pdf.
regards
Sunil -
How to read, write file inside the JAR file?
Hi all,
I want to read the file inside the jar file, use following method:
File file = new File("filename");
It works if not in JAR file, but it doesn't work if it's in a JAR file.
I found someone had the same problem, but no reply.
http://forum.java.sun.com/thread.jsp?forum=22&thread=180618
Can you help me ? I have tried this for all night !
Thanks in advance
LeoIf you want to read a file from the JAR file that the
application is packaged in (rather than a separate
external JAR file) you do it like this ...
InputStream is =
ClassLoader.getSystemResourceAsStream("filename");Better to use
this.getClass().getClassLoader().getResourceAsStream();
From a class near to where the data is. This deals with multiple classloaders properly. -
How can I see the metadata in the grid view?
I am in View/Metadata Display/Customize and trying to set it so in the Grid view [which I take to mean the browser in grid style as opposed to list] and trying to have below each image the - Rating, version name, caption and keywords. I check my List and there are entries in all of those four categories. I checked the Grid View Expanded and all four are listed under Display Order. Adn Show Metadata below image is checked. But when I set it all up, only the Rating and Version name shows up no Caption and no Keywords tho there are entries in both and both are included in the list of the Grid Expanded View.
Any suggestions? I have unchecked and cleared out all those and reentered and reset them up and that hasn't worked.Do they show up if you make the thumbnails in Grid View larger?
I'm pretty sure Metadata Overlays for Grid View and Viewer are limited to one line for Badges & Ratings & Color Labels, and one line for all other metadata (in both the Browser and the Viewer). Put your most needed metadata field first in the list. I often need to see Keywords, and I often need to see the timestamp, and I often keep my Images in grid view small -- so I've set up Grid View Basic to start with the timestamp, and Grid View Expanded to start with Keywords.
Of course, that won't be useful if enlarging your thumbnails in Grid View doesn't show the missing metadata.
"Show below Image" forces the line with the Badges, etc., to go below the Image. If unchecked, this top line of the Metadata Overlay is superimposed on the bottom of the Image.
Message was edited by: Kirby Krieger -
In Flash CS5, the 'Publish Settings' for the fla had an 'Export SWC' checkbox that took care of that.
The option is missing. Why was it removed and how can that be done in 5.5?Thanks sinious, but, it doesn't work.
Let me elaborate on what I want to do:
I'm trying to create a swf in Flash CS5.5, that's using a flex library (swc) that relies on Metadata tags (anotations).
I need to use the metadata tags in my as3 code (in the fla), and They need to be compiled into the swf (by Flash CS5.5 compiler...).
Although, when I load that swf, the metadata tags aren't compiled into it (I'm using describeType to check if tags are available in the swf).
In flex, I would use the '-kepp-as3-metadata+=' compiler setting to do that, in Flash CS4 & CS5 I used the 'Export SWC' in the publish settings, but that's removed (WHY???).
Checking XMP Metadata didn't change that, the tags are still not included in the compiled swf.
Anyone? -
How to read .xml file from embedded .swf(flash output) in captivate
I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
Here is is graphical demonstration of my query :
Message was edited by: captainmkvHi Captainmkv,
Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
Tristan,
Maybe you are looking for
-
Opening the utility "activity monitor", I see a process that appears and disappears, called 3265 "du" process. It occupies a lot of CPU % system (the red one in the mac activity monitor utility). Anyone knows what's that and how can I remove it? P
-
IPhoto wont save the "denoise" editing option...
I have already contacted tech support and spent an hour trying to figure this out with no luck. Problem: I make all the edits to my photo to include "denoise" then hit "done", which SHOULD then save my changes to the photo. I will exit that photo and
-
Has anyone succcessfuly implemented oid = iplanet ldap integration using ODM
I am trying to configure the execution and mapping tab in ODM but don't know what 'agent execution command' is. Also do I need to have admin type of account on the remote ldap to import into OID?
-
With all the phishing emails going on, we have been hit at least weekly for the past 2 months, I'd like to create an Incoming Content Filter to quarantine these. From looking at the messages they all seem to have the word "password:" on a line by its
-
WLC 5508 : session disconnected when one lag-port is down.
Hello, I have a WLC 5508 ( version 6.0.182). When the port1 and port2 are connected ( The switch is configured with a etherchannel in forced mode) everything works fine: There is traffic on the 2 ports. When I disconnect one of the 2 ports, I can sti