Get a Bitmap path of BipmapField
Hello
I want to go the way of the bitmap image set on the field of the bitmap to another screen. I have not found such a method of the API. getBitmap() is either unavailable to the general public in the BitmapField.
All their way to retrieve the path of the bitmap image occupies on the bipmapfield, or I'll have to save the path to wach bitmap separately?
Thank you
You give a BitmapField a Bitmap to be displayed, not the path to a bitmap, so I don't think that the BitmapField has any chance to determine where to get the Bitmap. The only option would be the Bitmap image, but if you check the API, you won't find anything here where he's sorry. You need to do. Perhaps you could extend Bitmap and save the string passed on the getBitmapResource?
Tags: BlackBerry Developers
Similar Questions
-
How to get the default path of the data of a table space file
I used below the sql statement to create a table space:
CREATE A TABLESPACE DATAFILE AAA BBB SIZE 10 M AUTOEXTEND OFF...
Notice, I do not give a full path instead of a file name, and then ask questions relevant to tables
get the full path of the data file, assume that it's path below:
d:\oracle\...\BBB
So I don't think that there is a default path that oracle can use it to create the data file. My question
is how to get this default path before creating a table space.
Thank you very much.
Hello
I did similar simulations for you, then it could be seen easily:
SQL > Show parameter db_create_file_dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_create_file_dest chain
SQL > SELECT NAME, VALUE OF V$ PARAMETER
2 where lower (name) = "db_create_file_dest;
NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
db_create_file_dest
It has the value NULL. Then where my datafile is going?
SQL > create tablespace TEST datafile 'test01.dbf' size 10 M;
Created tablespace.
SQL > select file_name
2 of dba_data_files
3 where nom_tablespace = 'TEST ';
FILE_NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf
When you check the alert logs, it will not show you the location of the data file. It will tell you what exactly you ran.
..
..
Completed: drop tablespace test whose content and data files
create tablespace datafile 'test01.dbf' size 10 M TEST
Completed: create tablespace TEST datafile 'test01.dbf' size 10 M
..
..
You can not SQL user * more? Well, I would say that, when you run the CREATE TABLESPACE command, is where you run the command:
SQL > select file_name
2 of dba_data_files
3 where nom_tablespace = 'TEST ';
FILE_NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf
So, you should get the location of your data file. Alternatively, you can run the query in the parameter $ v so that you know your default data file location.
I hope this helps.
Thank you.
Kind regards
Gaetan
-
Error getting of canonical path of a file on the Glassfish Server
Hello
I'm on jdev 11.1.2.4 and glassfish server 3.1.2.
I want to get the CanonicalPath of an image file in ViewController/public_html/images/company_logo.png
I use method below to get the path.
public static String getCompanyLogoFilePath(){ String filePath="C:\\company_logo.png"; // default value URL url; try { url = FacesContext.getCurrentInstance().getExternalContext().getResource("/images/company_logo.png"); File file = new File(url.toURI()); //System.out.println("getCanonicalPath:"+file.getCanonicalPath()); filePath = file.getCanonicalPath(); System.out.println("filePath: "+filePath); } catch (MalformedURLException e) { } catch (URISyntaxException e) { } catch (IOException e) { } return filePath; }
This method works very well on the integrated weblogic server. However, when I deploy my application on a glassfish server, it throws the following error
State of the TTP 500-
type of Exception report
Message
Description The server encountered an internal error () that prevents to satisfy this demand.
exception
javax.servlet.ServletException: /reportPages/Letter.jsf @91,109 action="#{backingBeanScope.LetterBean.cbRun_action}": java.lang.IllegalArgumentException: URI scheme is not "file"
first cause
javax.faces.el.EvaluationException: /reportPages/Letter.jsf @91,109 action="#{backingBeanScope.LetterBean.cbRun_action}": java.lang.IllegalArgumentException: URI scheme is not "file"
first cause
java.lang.IllegalArgumentException: URI scheme is not "file"
Note The complete exception stack traces and its root causes are available in GlassFish Server Open Source Edition newspapers 3.1.2.2
GlassFish Server Open Source Edition 3.1.2.2
any ideas?
Thank you
When you want to get real (absolute) path to a file within the context of the web, you pass 'virtual' path of this resource (from the root of context) to ServletContext.getRealPath () method.
("Something like: FacesContext.getCurrentInstance().getExternalContext().getRealPath("/images/company_logo.png ");
Note this virtual path always use ' / ' separator (irrespective of the platform)
In addition, on some servers, getRealPath() does not by default if you need to activate this: java - getServletContext ().getRealPath("") returns null in WebLogic - Stack Overflow
Dario
-
How to get the full path of the af:inputFile component
Hello
I use af:inputFile component in my application to download an Excel file and get the data from the file.
From the component, I could get only the file name.and not the full path to the file.
So, I am unable to access the file to extract the data from it.
Is it possible to get the full path of the file to access to retrieve the data from it?
Data or data streams is only valid in the same request. Once you navigate, the stream is closed and you get nothing if you try to read it. You need to download the file on the first train in the temporary location (Tip: search ;) File.createTempFile ("temp-file-name", ".tmp") and put the file name and the path to your beans.)
Timo
-
How to get the absolute path to a file in photoshop extended?
Hello
I try to send a file via an entry inside an extension of Photoshop. But how can I get the absolute path to this file inside the computer?
Thanks in advance
I don't know what you mean by sending a file. Do you want to open a file in PS or do I have to declare the path for support for the extension file? With javascript, you must define a variable. In Win it should look like:
var file = new File('/c/images/myfile.psd');
or
var myScript = new File(app.path + '/Presets/Scripts/myJavascript.jsx');
-
Hi all
I am new to OAF and need your help. I create a page of the OAF who will pick up a file on my local server and will place it in the unix directory. I created this Page, but my problem is that I currently use it in development instance. Later, he will go to SIT, then UAT and instance of PROD.
Whenever I need to change the path in the OPS where the file should be kept. I was wondering if there is a way where the OAF itself can get the SUPERIOR path as, if I say $XX_TOP/incoming/data/then OFA should automatically expand "$XX_TOP/incoming/data / ' to the instance of database path and to move the file.
Kindly help me on this.
Thank you very much.
Concerning
AryanAryan_styles wrote:
Hi allI am new to OAF and need your help. I create a page of the OAF who will pick up a file on my local server and will place it in the unix directory. I created this Page, but my problem is that I currently use it in development instance. Later, he will go to SIT, then UAT and instance of PROD.
Whenever I need to change the path in the OPS where the file should be kept. I was wondering if there is a way where the OAF itself can get the SUPERIOR path as, if I say $XX_TOP/incoming/data/then OFA should automatically expand "$XX_TOP/incoming/data / ' to the instance of database path and to move the file.Kindly help me on this.
Thank you very much.
Concerning
AryanUse this query:
SQL> select variable_name, value from fnd_env_context where variable_name = 'XX_TOP'
http://ETRM.Oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_ENV_CONTEXT&c_owner=APPLSYS&c_type=table
Thank you
Hussein -
How can I get my mask path to show instead of the mask shape dialog box?
Hello
I've recently updated to AE CS6 and to see why can't get my mask path to show. I want to create a simple mask that drives from point A to point B, thus revealing an object in my composition slowly. In CS5, all I had to do was click on the mask path Stop Watch and the yellow mask with spikes of pen and Bezier handles appear around my object. I could then create another keyframe and change the shape of the mask with my pen/selection tool that will create the desired effect. However, in CS6 when I add a mask to my object and click on the stopwatch for mask path mask yellow appears.
You probably have the visibility of the mask off in the comp window. Turn it back on again.
-
Forms 6i: how to get the UNC path? SOLVED
Anyone know how to get the UNC path of in Oracle Forms 6i
For example, if the user enters an output file:
j:\Data.txt
How I translated that UNC path:
\\serv-123\cfs\data.txt
Basically, I need to pass the UNC path to a regular DB procedure that later would be to copy an output file at the location specified by the user. "J:" being a network drive mapped, the database server would not be able to copy the file.
Thank you
JimIt's perhaps easier: read the registry using WIN_API_ENVIRONMENT. READ_REGISTRY. The key is HKEY_CURRENT_USER\NETWORK\
\RemotePath. -
How to get the full path of the image open in a filter plugin file?
Hello
How to get the full path of the current file, including the directory, the file name with the extension. I need information to download the file on a webserver for a plugin. I found an example that can get the name of the document (title property) but without extension and directory. How can they?
James
There is no way to get the full path of the active document in a plug-in filter. A plugin automation has access to this information and the file format plug-ins.
-
get the Bitmap Image of the web site or remote location
Hi, yesterday I asked for some ease of image horizontal scorlling with blackberry. It's work very well. Thank you for all.
But I could not do my job. What I need, that I have to get the Image from a web site (not in the project of ths) and display it in the BB device. I can do this and I get byte array and show the image using BitmapField. But this installation of scrolling does not work with the bitmap field.
Is is them possible to get my web site dynamic images of the Bitmap object?
Here is the code that you sent me.
// ------------------------------------------
package com.falseflag.blackberry.recipes;
Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.ui.Graphics;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.container.MainScreen;class ScrollingImageRecipe extends UiApplication {}
private class ScrollingImageScreen extends form {}
private static final int HORZ_SCROLL_FACTOR = 10;
private static final int VERT_SCROLL_FACTOR = 10;Bitmap bitmap;
int left = 0;
high int = 0;
int maxLeft = 0;
maxTop int = 0;
public ScrollingImageScreen() {}
bitmap image = Bitmap.getBitmapResource ("test.png");
If (bitmap == null) {}
UiApplication.getUiApplication () .invokeLater (new Runnable() {}
public void run() {}
Dialog.Alert ("Failed to load image");
System.Exit (0);
}
});
return;
}
If (bitmap.getWidth () > Graphics.getScreenWidth ()) {}
maxLeft = bitmap.getWidth () - Graphics.getScreenWidth ();
}
If (bitmap.getHeight () > Graphics.getScreenHeight ()) {}
maxTop = bitmap.getHeight () - Graphics.getScreenHeight ();
}
}
protected void paint (Graphics graphics) {}
If (bitmap! = null) {}
graphics.drawBitmap (0, 0, Graphics.getScreenWidth (), Graphics.getScreenHeight (),
bitmap, left, top);
}
}
protected boolean navigationMovement (int dx, int dy, int, int time status) {}
left += (dx * HORZ_SCROLL_FACTOR);
top += (dy * VERT_SCROLL_FACTOR);If (on the left< 0)="" left="">
If (upper-< 0)="" top="">
If (left > maxLeft) left = maxLeft;
If (top > maxTop) top = maxTop;Invalidate();
Returns true;
}
}Public Shared Sub main (String [] args) {}
ScrollingImageRecipe app = new ScrollingImageRecipe();
app.enterEventDispatcher ();
}
{ScrollingImageRecipe()}
pushScreen (new ScrollingImageScreen());
}}
//-------------------------------
Please be so kind to give me a solution for this issue.
You can use a browserfield to display web content in your application. Take a look at the browserfielddemo provided with the BlackBerry JDE for example
If you ask how to connect to a web site, please see the httpdemo.
This example shows how to create a scrolling image field.
-Creates a scrolling Image field
Article number: DB-00681 -
When I need to send the path to a network drive to a colleague, I always type it in manually. Is it possible that I can right click on the drive or see the path to the folder in the address bar, as it is in the format "\\server\share\folder' rather than 'Y:\. » ?
Thank you
Ben
Hi Ben,
The question you posted would be better suited for COMPUTING public Pro on TechNet. I would recommend posting your query in the TechNet Forums to get help:
-
How to get the Page Path in Webcenter at run time
Hi all
I want to get the path to the page of the current page which is consulted by the user at run time (rather, in the method of TF activity)... This path of the page will get the def page and do some operations above.
We tried to get it from the context of Navigation, but node.path returns null.
Guidance on how I can get the computer?
Kind regards
Siddharth
SID,
You can use the EL #{pageDocBean.pagePath} for the path of the page.
K
-
How to get the full path without a docs «~»
My file is here:
'C:\Users\first.last\Desktop\PS_Tester\SRC\Work.psd '.
Note that doc is on the desktop (Windows).
Copy the following code:
var Vc_v7 = activeDocument.fullName;
Alert (myTest);
Returns:
"~ / Desktop/PS_Tester/SRC/Work.psd".
I would like to and wait until he returns the real path with the 'C:\Users\first.last' and not the «~»
When I pass the ~ path to another app folly occurs.
Or y at - it a way to get that represents the tilde?
Just a slight correction, for the alert. using a forward slash is not now with what you're going to get back, that will be all the backslashes normal. You need a double backslash:
alert(MyTest+"\\"+app.activeDocument.name);
-
Get the full path of the file.
Hi all!
I work with ODI 11.1.1.3 and everything works well in my interfaces. Now, I need to add a new step on the package.
My interface uses a flat file (.txt) as the source and load its data to an Oracle DB.
The new step that I have to add should delete the source at the end of the process.
I don't want to hard-code the full path of the file in the delete command, so I wanted to do the sam using the odiRef functions, but I did not work.
I used the getObjectName function, but it does not work.
Anyone has an idea on how to get the full name of the file?
Thanks in advance!Hello
Sorry for typo's fault.
The command has been
OdiFileDelete ""-FILE = < %="odiRef.getSchemaName" (""="" model_code_here"",="" ""d"")%=""> >/YOUR_FILE_HERE ""-RECURSE = NO "" "-CASESENS = NO" "-NOFILE_ERROR = YES.
Sorry for the distraction :(
-
I am taking a vector object, say a flower, compensate a path then get a path independent vector around the outside edge of the offset.
I take my flower, add a line, compensate for this trait, then select Add to Pathfinder, which gives me visually the exact shape of offbeat perimeter I'm looking for. The problem is that this isn't a vector path in its own right. Is there a way to get Illustrator to recognize the lag shot as it is vector own way?
Please forgive me if my terminology is off that I am not a formally trained graphic designer.
MP,
If I (put) understand it, object > decaying appearance.
There is a difference between effect > Pathfinder and window > Pathfinder.
Maybe you are looking for
-
Use the message filter to export the message?
I would like to automatically export some messages as text files in a folder on my hard drive. I thought that I would be able to define a message filter to do this, but to "perform these actions", there is no apparent way to run or use a plugin from
-
Microsoft wireless mobile mouse 6000 v2 2.4 ghz dongle replacement
Is the dongle that came with the "microsoft wireless mobile mouse 6000 v2" replaceable? If so, where would you get? URL?
-
How can I fix excerpt: error writing to the file and an unstable WiFi connection
original title: How can I fix excerpt: error writing to the file Hello, I do not know anythingon fixing of my computer when I have problems. I looked at all the research sites and assistance, and none of them helped me with these problems and im gett
-
The bienvenido pantalla no will can instalar
Soy el administrator y el usuario unico, Sin embargo, siempre sell me the the contrasena pantalla
-
Connection to the existing network router
I have a linksys wrt54g ver3 and wrt310n router that I'm trying to connect to the internet through a router Cisco 71. Forgive me my network skills are weak... And I jump in the middle of it. The network went from a dynamic IP address provided by a se