Load from file:// url
Hi,
I'm trying to get a very simple OSMF example loading from a file:// URL.
When I load from an absolute http:// url the video is loaded and displayed.
When I try to load from a relative URL or an absolute file:// URL the video is not loaded and displayed and no request is made to load the video.
I don't think it is a security sandbox issue as I'm running in a trusted folder and would expect an exception for a security sandbox issue.
Executing netLoader.canHandleResource() returns true for each URL.
Surely I'm missing something obvious but I would expect this to work without any extra effort.
Maybe this is a known issue of I need to do something else to load from file:// URLs.
The code is so simple it's hardly worth posting:
public function load( url:String ):void
var resource:URLResource = new URLResource( url );
_netLoader = new NetLoader();
trace("VideoPlayer::load()", _netLoader.canHandleResource( resource ) );
var media:VideoElement = new VideoElement( resource, _netLoader );
//display has already been instantiated and added to the display list
_display.addMediaElement( media );
_player = new MediaPlayer();
_player.media = media;
Any help with this would be much appreciated.
You can use the IOErrorEvent.IO_ERROR listener and trace for debugging to see if your xml is being received.
example...
var pageData:XML;
private function getInfo():void {
var url:String = "urlTo.xml";
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.addEventListener(Event.COMPLETE, onLoaded, false, 0, true);
myXMLLoader.addEventListener(IOErrorEvent.IO_ERROR, errorXML, false, 0, true);
myXMLLoader.load(new URLRequest(url));
private function onLoaded(e:Event):void {
pageData = new XML(e.target.data);
pageData.ignoreWhitespace = true;
//for testing in Flash
trace("Data received: "+pageData);
//for testing to device
// example: textfieldOnStage.htmlText = pageData;
//handle xml load error
private function errorXML(e:Event):void {
trace("XML Error:"+ e);
// example: textfieldOnStage.htmlText = pageData;
Similar Messages
-
Extract the load from file extended results table in a csv file format
I am trying to figure out a way to extract the extended results table spit out by IDM when we do a load from file. The result generates a table with 10 entries per page. I would like to atleast change that and display all the successes and failures in a single page.
Edited by: indie on Jan 15, 2008 4:51 PMHi indie,
I need to do something similar. Did you find a way ?
TIA,
AndyDev -
Someone knows which workflow runs when Load from file task is executed?
or If you use a Load Form, you can use the viewOptions.process to inidicate which workflow you want to execute?BUT, you must save the Photoshopped image using Save (not Save As using a new name or saving to a new location) so that a Photoshop file is saved back in the Aperture library. It would be nice if you could use the Apple-Shift-O to open in Photoshop, and save back as a Jpeg automatically, but we're not quite there yet.
Those full size Photoshop files will swell your library size pretty quick, which is a good thing; you'll begin to appreciate non destructive editing more fully -
Modify image data when loading from a url
in an applet i am loading an image from a url, using aproximately the following code:
public Image loadImage(Component c, URL url) {
URLConnection conn = url.openConnection( );
Object o = conn.getContent( );
if( o instanceof ImageProducer ) {
return c.createImage( ( ImageProducer ) o );
else { ..... }
this loads the image without the possibility of modifying the input data. does anyone know how i can manipulate the InputStream so that i can intercept the input data?
the idea is to transfer an encrypted image and decode it. it should not be possible to download the image from the url with eg. a web-browser.
thanx, danielURLConnection.getInputStream()with reading from URLConnection.getInputStream() i can't manipulate any data. it's not possible to read some bytes and "unread" modified bytes.
-
Is there a way to load a control (i.e. boolean switch) name from a file?
Here is my situation. I have 4 selector toggles, and a go button. Picking a selection and pressing go will send an array of four binary numbers (true or false converted to 0 or 1) to a sub vi called command_former.
This program is simple. It first loads up a library file with pre-made sequences of bytes which correspond to each button. It outputs an array that includes the appropriate byte sequences concatenated onto one another if the selector toggle is set to 1.
By loading the values from a file, it easily lets the user change what the selector toggles do. But I do not know how to change the name to also load from a file.
Solved!
Go to Solution.You cannot change the name of a control at run-time. You can, however, change the caption. For Boolean controls if you want to change the text that appears in the middle of the control this is done via the BooleanText property node. See https://decibel.ni.com/content/docs/DOC-22669 for a simple example.
-
Newbie question: Is it possible to load values into a table from
a tab-delimited file? In Informix, the syntax is:
load from century2.data insert into tmp_century;
Thanks!
John
nullJohn Dimm (guest) wrote:
: Newbie question: Is it possible to load values into a table
from
: a tab-delimited file? In Informix, the syntax is:
: load from century2.data insert into tmp_century;
: Thanks!
: John
Instead you use the SqlLoader you can use too the UTL_FILE
package. This package come with oracle and have to be executed
in the ORANT\RDBMS\ . After created this package you can read
and write file from PL/SQL programs. Don't forget it to insert
the parameter in the IntiSid.Ora " utl_file_dir= * " . Read the
documentation about Utl_file .
I prefer Utl_file because you can manage the data before insert
in the Database. But the Sql Loader is too a good toll.
null -
RapidMarts - "Open file error" R3C-150607 loading from file
Hello experts.
We are installing RapidMarts for the SA-module, but when executing the main workflow in Data services we get an error trying to load the file dates.dat.
The generated ABAP looks just fine, and the file exists where it should be (in SAP working directory), but still not able to load it.
This is the error msg:
Data flow DF TimeDim SAP - Execute ABAP program <E:/RM generated ABAP dir/TimeDim.aba> error > Open File Error -- E:/RM Working directory/dates.dat>.
We have the following setup:
Windows server
MS SQLserver 2005 database
SAP BO Dataservices v12.2.9.0
SAP BO RapidMarts for v12.2.0
Any good ideas on how to fix this?
Thanks in advance!
Best regards,
IngAHi again.
The problem is solved.
When configuring the R3 datastore in Dataservices we assigned the different directories (working dir, generated ABAP dir etc.) on a server that's NOT our R3-server.
When we changed this to use folders on our SAP-server it works just fine (for this at least)
Cheers, IngA -
my problem
i have array which hold the color --->int this work fine [only one digit]
i have another array which hold --->boardpiece [ some of have two digit]
each time i call this function(below) it give me a number
i am to confuse at moment i was siting here from morning and i still can get answer
[this function read text and then send it to my load funtion in my board class
i cant tell it read whole text first and then convert both didigt to one array]
eg. 14
it reads 1
send 1
reads 4
send 4
and then i have more elemen in my array------>i get error[i want it to send just 14]
// i try send as array but at moment i cant do it " i will greateful
some one give me some hint"
for(int i=0; i<s.length(); )
{ if (s.substring(i,i+1).equals(""))
else
{ l=substring(i+i+1
aload =Integer.parseInt(s);
bboard.load(aload);
i++;
my save file look like this
1
12
15
7
14
0
thankstrouble understanding me english yours
-
What mean applet load from file system.. till now i load by browser (is
just i heard about applet load in two way
1) from net (this is throw html )
2) from local file system. (What is this )
plszzfrom local file system. (What is this )When the html file and the applet is on your harddisk and you open the html file in a browser.
-
Problem with Data load from file
Hi,
if i try to load data from an comma seperated file into oracle, i get an error that the page cannot be displayed, after the dialog where to specify the file and the separation method.
My Browser does not try long to open the page approx. 1 sec. ...
Anyone have a Idea about that ?
P.S I know my englisch is horribile, sorryA known bug. See below for a solution to set the timeout. Remember to reboot the PC for the changes take effect.
See Re: Problem with importing HTML DB applications -
Load from file error with Tomcat
I'm trying to load a set of users from a CSV and whenever the file is more then a couple kb, I get an error which says:
javax.servlet.ServletException:
==> java.io.IOException: No such file or directory
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.loadFromFile$jsp._jspService(loadFromFile$jsp.java:1017)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
etc.
I get the same error when attempting to upload a file for bulk resource actions. I've tried playing with the Tomcat disableUploadTimeout parameter with no luck. Are there any other Tomcat parameters that could affect the upload of these files? When I use the same files with a limited number of lines, the uploads of the csv files work fine. I'm using the following setup:
Solaris 10 118833_17
Sun System Identity Manager 7.1 (20070523)
Tomcat Servlet/JSP Container 4.0.5
MySQL 5.0.60Your error will be the same as this posting
Jobs Credentials Problem
What it needs is the Windows User and it needs to have the Local Security privilege 'Log on as a batch job' . This will be probably already assigned to the ORA_DBA group. So enure that the user you use to logon to Windows is in the ORA_DBA group. -
Save Labview tree Control to file and Load from file
I want to save all of the information from my Labview (8.2) tree control to a file and be able to read it back from a file and re-populate the tree control. I am using different symbols as well as multiple columns and level of children in my control. Does anyone have any suggestions on how to do this?
Thanks
Steve M.
Attachments:
tree pic.jpg 60 KBHi Steve,
I found a DF that talks about saving the tree to a spreadsheet file and have included it in this message. To get items from the tree control, you have to use open up the tree and remove all of the items off of that tree, while still preserving the heirarchy of the tree. The indent level property node will preserve the heirarchy of the tree and from there you can get the item tag and cell string.
To transfer the file to a tree, you will then need to read the file and insert items into the tree corresponding to the heirarchy. I have also found a tutorial on how to traverse tree controls.
I hope this helps.
Regards,
Nadim
Applications Engineering
National Instruments -
Hi there,
I have a schema with 2 dimensions time (It contains 2 years 1990 -1991 and has no hierarchy) and geography (levels:country-continent).
I need to mention that i have 2 groups of files:
1) for year 1990
2) for year 1991
Each group represents the data for each year. In each group there are data for the measures of cube.
Also, each file has a specific format. Each one has 2 columns: first column contains the countries and second column contain data for each specific country.
For example:
measure1_1990.txt
country1 data1
country2 data2
I need help on loading these data in my cube. The reason why i ask is that in the TUTORIAL we only maintain our cube and data is loaded.
Could you help me loading data in my cubes by this batch of files?
thanks in advanceAs u mentioed in your post should bee excel save as csv why need semicolon just check out and analyze
1;1;99991231;10000101;0.99;0.00 -
Delete and modify orgs from Load from File
Hi,
I created my organizations with the Configure > Import File option, but how can i delete or modify organizations in a same way.
Thanks,In that case Do i need to write the entire contents of my file to a hash table(sumthng like this) and modify the Second row in my case with the new values..
is it possible??I would have done like this (though there maybe better methods)
1- create a class representing the record.
class Record{
String field1;
String field2;
String field3;
// and so on....
//setters
public void setFeild1(String str){
field1=str;
// and so on....
//getters
public String getFeild1(){
field1=str;
// and so on....
public String toString(){
return(field1+"||"+field2+"||"+field3);
}//end class2- then create an ArrayList meant to have objects of this class (Generics).
3- read from the file , create a new Record Object and add that to the ArrayList
4- perform operations on the ArrayList (you can add new records, and delete record, update......)
5- write the record back to file using 'toString()' method.
is there ne sample code available for thisdon't know, but you rarely get full code on forums.....outline given can be followed
Thanks!
Edit: It appears that 'r035198x' and me have the same point. This shows that this methodology is almost a standard way( if we ignore the Random access files.....)
Edited by: T.B.M on Jan 13, 2009 2:39 PM -
As above when
Requesting on your website "Your download should automatically begin in a few seconds, but if not, click here."It is one of the primary mirrors (located in Australia) for releases.mozilla.org to help with load balance, especially due a new release.
http://www.mozilla.org/community/mirrors.html
If you go to daimajin.mirror.aarnet.edu.au you will see that they help mirror for a variety of opensource stuff. http://mirror.aarnet.edu.au/indexabout.html
Maybe you are looking for
-
Ld can't find any libraries when linking.
EDIT This has already been solved here: https://bbs.archlinux.org/viewtopic.php?pid=1089155 I should have read more carefully before posting, sorry. I have a project that successfully compiles in all my sistems (on of those being arch), and even on w
-
Could not connect to any JRun/ColdFusion servers on host localhost
I am a new CF admin and I am trying to upgrade my Apache. I am following the instructions in http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fd9 .html but am getting an error. Could not connect to any JRun/Col
-
I've been trying to update my ipad all day, and it keeps stopping with an error that reads, "There was a problem downloading the software for the iPad 'Becki's iPad.' The network connection timed out." My question is, how can I prevent this from hap
-
I had Oracle 9i Release 2 On Windows Environment. I had a Database On this Version I am taking a Cold Backup of my Database (User Managed Backup :- All datafiles, Control file, Spfile) I had installed Orale 10g on Another Server. Requirement :- Migra
-
All folders on my iMac are in alphabetical order, however, when I save an item to a folder they are not. Why?