How to load images from css file in JavaFX 8
I have this css file which loads images in JavaFX 8 application:
#pill-left {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/left-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-left:selected { -fx-border-image-source: url("/com/dx57dc/images/left-btn-selected.png"); }
#pill-left .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-left:selected .label {
/* -fx-text-fill: black; */
-fx-text-fill: white;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
#pill-center {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/center-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/center-btn-selected.png"); }
#pill-center .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-center:selected .label {
-fx-text-fill: black;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
#pill-right {
-fx-padding: 5;
-fx-border-image-source: url("/com/dx57dc/images/right-btn.png");
-fx-border-image-slice: 4 4 4 4 fill;
-fx-border-image-width: 4 4 4 4;
-fx-border-image-insets: 0;
-fx-border-image-repeat: stretch;
-fx-background-color: null !important;
#pill-right:selected { -fx-border-image-source: url("/com/dx57dc/images/right-btn-selected.png"); }
#pill-right .label {
-fx-text-fill: #d3d3d3;
-fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 , -1 );
#pill-right:selected .label {
-fx-text-fill: black;
-fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
The images are located at the Java package com.dx57dc.images
In Java 7_25 this code works as expected but in JavaFX 8 b99 I get this error:
ava.lang.NullPointerException
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.sg.prism.NGGroup.renderChildren(NGGroup.java:233)
at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:199)
at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1249)
at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:1598)
at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1520)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:99)
at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:210)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:95)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:129)
at java.lang.Thread.run(Thread.java:724)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
D3D Vram Pool: 13,331,480 used (5.0%), 13,331,480 managed (5.0%), 268,435,456 total
20 total resources being managed
4 permanent resources (20.0%)
1 resources locked (5.0%)
7 resources contain interesting data (35.0%)
0 resources disappeared (0.0%)
What is the proper way to load images from css in Java 8?
Ref
How to load images from css file in JavaFX 8 - Stack Overflow
There is nothing special to do - you execute the statement from your program just like any other SQL statement. The only thing to be aware of are the privilege/permission issues:
When loading from a file on a client computer:
READ CLIENT FILE privilege is also required for the database user.
Read privileges are required on the directory being read from.
The allow_read_client_file database option must be enabled.
The read_client_file secure feature must be enabled.
Revoking these privileges is also the only way you can prevent a user from executing the statement.
Similar Messages
-
How to load images from BLOB to javascript?
hi, Guys:
I need to load thumbnail images from BLOB to multiple markers' infowindow in Google map . I have implemented Google map in APEX. I load the data suchas text for every marker's infowindow from Oracle database table with PL/JSON, and infowindow works fine. Could anyone give me a suggestion or example so I know how to load images to javascript?
Thanks a lot.
Database: Oracle 11g R2
APEX: APEX 4.1
Thanks.
Samlxiscas wrote:
hi, VC:
Thanks for your kind reply. I need to render these images out of APEX session, actually in javascript that is related to Google map markers' infowindow.
I checked the documents of APEX_UTIL.GET_BLOB_FILE_SRC, but my impression is I need to use it in APEX instead of javascript if my understanding is correct. I already implemented a procedure with PL/SQL to load images from a BLOB column in Oracle database. But the problem is, how can I pass it to javascript code out of APEX to javascript (I could pass text or number from APEX to javascript with PL/JSON though,But I assume that still google map will be within a valid apex session? if so you should be able to use the above api.
Basically what this api does is generates a kind of url to each blob in the database, not sure how google api's deal with this though. Why don't you give it a try?
The other option is to make your pl/sql procedure public and then you can generate the json to include the images urls such as:
"employees" : [{
"firstName" : "John",
"lastName" : "Doe",
"imgSrc" : "http://somewhere/db_schema.your_download_proc?p_file=#ID#",
"firstName" : "Anna",
"lastName" : "Smith"
"imgSrc" : "http://somewhere/db_schema.your_download_proc?p_file=#ID#",
"firstName" : "Peter",
"lastName" : "Jones"
"imgSrc" : "http://somewhere/db_schema.your_download_proc?p_file=#ID#",
}And then you can use this new attribute to populate the images in javascript using standard img tag
See this tutorial http://docs.oracle.com/cd/E14373_01/appdev.32/e13363/up_dn_files.htm
I did not find any method in PL/JSON to pass image object)? So far I only found example to load images from local files to javascript.Hmm..I don't think you should load image objects.
Vikram -
Problem loading image from jar file referenced by jar file
First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
When JarB goes to load an image the following happens:
java.lang.NullPointerException
at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
The code from JarB that loads the image looks like this:
URL[] oSearch = {Main.class.getResource("images/")};
URLClassLoader oLoader = new URLClassLoader(oSearch);
imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
Any help very appreciated!Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
If you want to read somthing inside the jar-file you need to encode it first.
Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file. -
How to use image from a file in signature appearance.
Hi,
I am creating a Plugin for acrobat 9, using PubSec using DocSign sample as basis. I have created the appearance using text objects and the logos data that came with the DocSign sample. But I want to use image from a file (like, jpg) in the signature appearance creation. So far the documentation doesnt tell how to achieve this.
Can you please tell me in a "How-to" kinda way to achieve this?
Thanks in advance.Thanks for ur prompt reply.
There are so many samples in the sdk. which one is the "sample for adding images."? -
PJC - Loading Images from JAR Files
I'm developing a PJC class that involves loading images. I would like to be able to find and use an image contained in a JAR file just like the built-in Forms items do; not the JAR file where my class is contained but any external ones defined in the server archive settings.
I have seen the loadImage method in the demo RolloverButton class but this only loads images from the class's JAR and not any others.
Is there a VButton method or an Oracle loader class for finding image resources from the defined JAR archives? If not, could someone supply some code for achieving this.
Thank you.Hi,
the jar file name the images are in shouldn't matter for the code as long as the package name is preserved. If you want to see it with your own eyes, do the following
1. Back up demo90.jar
2. Create a copy of it and call it demo90img.jar
3. Open demo90.jar in winzip and remove all images
4. Open demo90img.jar and remove all Java classes
5. add ,/forms90demo/jars/demo90img.jar to the archive_jini tag of a demo you want to test this on
6. Run the application and see the images despite the fact they are now in a separate jar file. Note in the Jinitiator console that the new jar files are downloaded and replace the existing, cached, jars
7. Run an application that doesn't have demo90img.jar configured to see that the images are missing.
Frank -
How to load data from UTL file to database
Hi All,
I am new in this technologies.
I am facing below problem to load data from utl file to database .
below is the script written by me :
CREATE OR REPLACE PROCEDURE load_data AS
v_line VARCHAR2(2000);
v_file UTL_FILE.FILE_TYPE;
v_dir VARCHAR2(250);
v_filename VARCHAR2(50);
v_1st_Comma NUMBER;
v_2nd_Comma NUMBER;
v_deptno NUMBER;
v_dname VARCHAR2(14);
v_loc VARCHAR2(13);
BEGIN
v_dir := ':f/rashi/dataload';
v_filename := 'fake.txt';
v_file := UTL_FILE.FOPEN(v_dir, v_filename, 'r');
LOOP
BEGIN
UTL_FILE.GET_LINE(v_file, v_line);
EXCEPTION
WHEN no_data_found THEN
exit;
END;
v_1st_Comma := INSTR(v_line, ',' ,1 , 1);
v_2nd_Comma := INSTR(v_line, ',' ,1 , 2);
v_deptno := SUBSTR(v_line, 1, v_1st_Comma-1);
v_dname := SUBSTR(v_line, v_1st_Comma+1, v_2nd_Comma-v_1st_Comma-1);
v_loc := SUBSTR(v_line, v_2nd_Comma+1);
DBMS_OUTPUT.PUT_LINE(v_deptno || ' - ' || v_dname || ' - ' || v_loc);
INSERT INTO don
VALUES (v_deptno, UPPER(v_dname), UPPER(v_loc));
END LOOP;
UTL_FILE.FCLOSE(v_file);
COMMIT;
END;
show error
I am getting the below errors:
LINE/COL ERROR
3/8 PL/SQL: Item ignored
3/8 PLS-00201: identifier 'UTL_FILE' must be declared
15/1 PL/SQL: Statement ignored
15/1 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
20/1 PL/SQL: Statement ignored
20/19 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
36/1 PL/SQL: Statement ignored
LINE/COL ERROR
36/17 PLS-00320: the declaration of the type of this expression is
incomplete or malformed
could anyone please advice me on above error.
thanx.First of all, is file located on (or is accessible from) database server? If not - you can't load it neither with UTL_FILE nor with external table. You need to use client side tool like SQL*Loader or write your own client side load. If file is accessible from database server, then, as sb92075 noted, external table (assuming you are not on some ancient Oracle version) is the way to go.
SY. -
Hi all
I want input Image into Forms Igame from a file
using file open methods
what should i do
i am test some code from oracle 10g Docs but facing an error ORA-06508
i thing some thing is missing in configration file
Need Help
Waiting for reply
Take care
Qaiser Hassan AwanHello,
Use an image item and populate it with the Client_Read_Image_File Webutil function.
Francois -
How to load images from different path
Hi,
i'm triying to load an image using the next code:
String path="C:/images/tv_on.gif";
java.net.URL imgURL =new java.net.URL(path);
img=Toolkit.getDefaultToolkit().getImage(imgURL);
but when it is compiled it returns MalformedURLException.
the image is in my local directory so i've tryed to define
path="file:///C:/images/tv_on.gif";
becuase the port and the local host name aren't needed.
Anyway it does not work.
I don't know how to load an image that it is in a file in a different path from the mainclass path
CAN ANYONE HELP ME?sorry to bother, similar like above, i tried many times on my computer to load a simple image in java application.. here's my code:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
public class View extends JFrame {
private URL imageURL;
private File file;
private Image sourceImage;
private String name, title, message;
private int width, height;
public static void main(String[] args) {
System.out.println( "Hello Eros!!!" );
View img = new View();
public View() {
name = "D:/shared/inputpic.gif";
file = new File( name );
Toolkit toolkit = Toolkit.getDefaultToolkit();
try {
imageURL = new URL("http://www.google.com.my/images/logo_sm.gif" );
} catch (MalformedURLException e) {
if ( file == null ) {
sourceImage = Toolkit.getDefaultToolkit().getImage( name );
System.out.println( file );
} else {
sourceImage = toolkit.getImage( imageURL );
System.out.println( file );
width = sourceImage.getWidth( this );
height = sourceImage.getHeight( this );
System.out.println( "Pixel = " + width + "x" + height );
if ( width * height == 1 ) {
title = "Greetings"; // Shown in title bar of dialog box.
if ( file == null ) {
message = "Unable to load the file " + name;
} else {
message = "Unable to load the link " + imageURL;
JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
}could anyone test this n give my the reason i couldnt even load the image -
How to reference images from CSS for a portal component
how can I reference an image stored in the standard "/images" folder in a .PAR file from a CSS file?
I tried
.myHTMLelement {
background-image: url('/images/TAB.bmp ') }
but it does not work (the image can't be found).
I don't want to use the API
request.getWebResourcePath() + "/images/saplogo.gif
in my JSP because this needs to get into a CSS file.Hmmm,
When project is deployed, the JSP's are usually located in private section:
<i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\projectname\pagelet\someJSP.jsp</i>
but the CSS is in public section:
<i>Z:\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\portalapps\projectname\css\someCSS.css</i>
Now if you want to include the CSS in JSP I think you HAVE TO use the <i>getWebResourcePath</i> method:
<link rel="stylesheet" href='<%=componentRequest.getWebResourcePath()+"/css/someCSS.css"%>' type="text/css" />
or directly define the style:
<style type="text/css">
<!--
.dtn-node {
background-image: url(<%=componentRequest.getWebResourcePath()+"/mimes/normal.css"%>/images/arrow15x10.gif);
background-repeat: no-repeat;
padding-left: 11px;
padding-bottom: 7px;
text-align: left;
-->
</style>
Just check your deployment and fit it to your needs...
Hope this helps,
Romano
PS: for example look at this:
<i>\usr\sap\EED\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.pct.pdk.htmlbcontrols\pagelet\all_examples.jsp</i> -
How to load images from the library (png)?
This is my first time using the forum so sorry if it's not professionally set up. I am trying to make an inventory system and I'm trying to find a way to have a Slot (MovieClip) holding a child of probably another MovieClip witch will display the icon according to whatever is in that Slot... As soon as I figure out how to have a MovieClip display an image and then change that image by loading it from the library, I can finish the rest! So let me try to demonstrate:
(Note: This is not actual code, it's just a demonstration of what I'm trying to accomplish)
Item1 = Name: "HP Potion", Icon: "HP_Potion.png"
Item2 = Name: "MP Potion", Icon: "MP_Potion.png"
Item3 = Name: "Sword", Icon: "Sword.png"
Item4 = Name: "Shield", Icon: "Shield.png"
Slot1.nameField.text = Item1.Name //HP Potion
Slot1.mc_img = Item1.Icon//HP_Potion.png
~Ok so what I am trying to do is see if there is a way to change what image the MovieClip displays, just by code. I don't want to put each individual picture in a frame on the MovieClip's timeline
Sorry about not having any code, I've been working on it for a few hours, and I can't find anything online that doesn't say put it in a timeline.
If you know how to do what I'm asking with a spritesheet instead of individual images, that's fine too! I'll just have to join all the images togetherAlright so let's get down to buisness... what I'm asking, is it impossible to make it simple? I can't just change the bitmap of the MovieClip. If you open up the MovieClip and view it's timeline, the image is a bitmap file withing that MovieClip so if you're able to manipulate other things of a MovieClip, you should be able to manipulate that too right? Such as "MovieClip.Bitmap" (I know that's not the actual property but could it be done?).
-
How to Load table from client file in C?
Hi all,
I'm trying to determine how to write a C program to load a client file with the "load table ... using client file..." syntax without calling out to the dbisql program to load the table. I'm probably not seeing the forest for the trees here. I know I can use the bulk api (equivalent of bcp) but would rather use the load table because it is much faster.
jasonThere is nothing special to do - you execute the statement from your program just like any other SQL statement. The only thing to be aware of are the privilege/permission issues:
When loading from a file on a client computer:
READ CLIENT FILE privilege is also required for the database user.
Read privileges are required on the directory being read from.
The allow_read_client_file database option must be enabled.
The read_client_file secure feature must be enabled.
Revoking these privileges is also the only way you can prevent a user from executing the statement. -
How to show image from database file name?
Hello,
Reports version 10.1.2.3
OS: Windows server 2003
Client: Windows XP
Can someone please explain how to include an image in a .PDF report that is located on the file system and its location is read from the database? I've read the doc and it's not very clear.
Thanks,
WhitneyHello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_col_read_from_file.htm
Suppose that for each of your employees you have a .bmp file that contains a picture of the employee. In your employee table, you have a column named PICTURE that contains the name of the .bmp file with the employee's picture.
To generate a report that displays the employees' pictures, you select the PICTURE column in your query. In the Column properties for the PICTURE column, you set Read from File to Yes and specify Image as the File Format. Reports Builder will display the files pointed to by the PICTURE column wherever you have referenced the PICTURE column in your layout.
Regards -
I'm trying to build a online image resize tool.
problem i face are:
1. I build a button that allow user to browse the file. Once
file is selected, it doesnt show full path.
2. lets say if it shows fullpath, but i try to load it into a
movieclip, and it doesnt work because the swf file is located at
the server and not the client's place.
3. as far as i know, flash can only load images which is
located in the same server or internet.
4. if i use php, asp, cgi.. it can only allow me to 1st
upload the image then resize later, but this is not wat i want.
5. I need to 1st resize then upload later, because if i have
100 and more photos taken from digicam, it's going to be very slow
and heavy.
What i have tested:
1. upload "image3.jpg" into the same directory as the
"viewer.swf", and it works.
2. do not upload the swf to the server, but run locally from
the user's computer and open "image3.jpg" and it works.
3. upload the swf to the server and open "image3.jpg" from
the user's computer and IT DOESN"T WORK!
please help me out.
Thanks~!use this php code.
for flash php image prosses.
flash file
import flash.display.BitmapData;
shaF.onPress = function() {
output();
function output() {
snap = new BitmapData(mc._width, mc._height);
snap.draw(mc);
var pixels:Array = new Array();
var w:Number = snap.width;
var h:Number = snap.height;
for (var a = 0; a<=w; a++) {
for (var b = 0; b<=h; b++) {
var tmp = snap.getPixel(a, b).toString(16);
pixels.push(tmp);
var output:LoadVars = new LoadVars();
output.img = pixels.toString();
output.height = h;
output.width = w;
output.send("show.php", "output", "POST");
stop();
PHP file (show.php)
<?php
$data = explode(",", $_POST['img']);
$width = $_POST['width'];
$height = $_POST['height'];
$image=imagecreatetruecolor( $width ,$height );
$background = imagecolorallocate( $image ,0 , 0 , 0 );
//Copy pixels
$i = 0;
for($x=0; $x<=$width; $x++){
for($y=0; $y<=$height; $y++){
$int = hexdec($data[$i++]);
$color = imagecolorallocate ($image, 0xFF & ($int
>> 0x10), 0xFF & ($int >> 0x8), 0xFF & $int);
imagesetpixel ( $image , $x , $y , $color );
//$font = imageloadfont('arial.ttf');
$font = 'arial.ttf';
// $text_color = imagecolorallocate($image, 233, 14, 91);
$black = imagecolorallocate($image, 0, 0, 0);
//imagestring($image, $font, 5, 5, "A Simple Text String",
$text_color);
imagettftext($image, 12, 0, 10, 20, $black, $font, "A Simple
Text String");
//Output image and clean
//header("Content-Type: image/png");
imagepng($image,"finoy.png");
imagedestroy( $image );
?>
<html>
<body>
<img src="finoy.png" width="159" height="159" />
</body>
</html> -
How to load Material from Flat File and convert to SAP Format
Hi
I am loading 0Material values from Flat File for mapping purpose. The format of Material in Flat File is "7704132". Within the system, i need to compare the value with 0Material values from the incoming data and update corresponding 0Material in records. for this purpose, I created dummy materials taking 0Material as template and trying to load data. I am getting invalid error- Version '7704132' is not valid RSDMD No194. Can anyone please let me know how to over come this issue. Should I include any routine in the data source or rules level. I am in BI 7.0.
Thanks.Hi,
Use the FM CONVERSION_EXIT_ALPHA_INPUT to convert the value into Internal format .Use this FM in the Transformations (field mapping).
Search the forum with CONVERSION_EXIT_ALPHA_INPUT for more information on this.
Regards,
Anil Kumar Sharma .P -
How to retrieve image from XML file
Hi All,
I am new to XML. So any best guidance is appreciated.
The application requirement is to display image retrived from uploaded xml file in file upload section of our application. And store that image in database.
In my XML file , images & strings & numbers & booleans are there . I am able to save everything in database except images .
I am using JSF, Seam & Hibernate combination. In my Hibernate entity class i took BLOB datatype for image.
I am using following tags in my Xhtml file to display image
<s:graphicImage value="#{hibernateentitybean.picBlobtype}" height="200" width="200">
<s:transformImageSize width="200" height="200" />
<s:transformImageType contentType="image/jpeg"/>
But image is not displayed in Xhtml file
I am using org.w3c.dom.Document for retrieving node name & corresponding value in that node in XML file.
I am getting code like below for Image when i am logging all values from XML files in my bean class .
x0lGQRQAAAABAAAAAAAAAFJHAQARAAAAVwBhAHQAZQByACAAbABpAGwAaQBlAHMALgBqAHAAZwAAAP/Y/+AAEEpGSUYAAQIBAGAAYAAA/+0YLl
I want to convert this value to image. So i can convert image to bytes and store in BLOB.
Can anyone guide me ? or any other approach .
Thanks in advance for any reply.
Regards,
NareshDan_Koldyr wrote:
agree, it's really odd. Just reread OP and it says:
NareshDharmiVatsal wrote:
want to convert this value to image. In any case it doesn't get worth then another single code line:
final String cdata = "x0lGQRQAAAABAAAAAAAAAFJHAQARAAAAVwBhAHQAZQByACAAbABpAGwAaQBlAHMALgBqAHAAZwAAAP/Y/+AAEEpGSUYAAQIBAGAAYAAA/+0YLl";
final sun.misc.BASE64Decoder decoder = new sun.misc.BASE64Decoder();
final byte[] data = decoder.decodeBuffer(cdata);
Blob blob = new SerialBlob(data);//or what ever other DB-specific blob implementaiton Did i answered original question? Any more comments to my first replay?I can comment on this latest code. The package sun.misc is private to Sun (Oracle now of course). It is undocumented and may change or be removed altogether in a future release. There is a good free open source Base64 decoder in the Jakarta Commons Codec library.
Maybe you are looking for
-
Ipod touch 3rd gen will not turn on
Hi Updated my Ipod touch 3rd generation and now it will not turn on. I have restored it in itunes and updated it with the latest software but still nothing. The Ipod however is seen within Itunes. Any help would be greatly received. Regards goose
-
Is it possible to find an NTSC production monitor for $600?
I can't take it any more! Not only can they not be calibrated, but the consumer TV's that I've been using as monitors when working in FCP have those darn optimizing circuits that constantly adjust the picture based on the overall composition of each
-
My iphone locked up during an os software update
During a software update, my iphone has locked up. the progress bar appears to be about 80% finished (it also shows the apple above it) but it won't go the rest of the way across the screen (from left to right). It's been this way for an hour now.
-
OSB Deployment Scripts java.lang.OutOfMemoryError: PermGen space issue
Hi All I get this error at random intervals and to resolve this issue, I have to bounce my machine. Please help (Below is the error in .log file created in .metadata folder) !SESSION 2012-03-20 15:21:13.299 -------------------------------------------
-
Hey guys, kind of a newbie question here. We're running FCP 6 and were transferring over footage shot on an HVX200 in 24PN mode but it's showing up in FCP as 29.97. Shouldn't it be showing up as 23.98 in native mode? When I tried transferring off ano