Issue with displaying images from bestseller.inc.jsp
Hello all,
I'm new in developing with NWDI and I'm having this small problem:
in bestseller.inc.jsp (which includes productlist.jsp) there are two links with a product's code and a products description, which when clicked, navigate to productDetailsISA.jsp with the details of the product. While the images of all the products from other jsp's (for example from ProductsISA.jsp) display correctly in the ProductDetailsISA.jsp, there is a problem with the images of the products from bestseller and recommendations jsp's (they both include productlist jsp).
The code for creating the links *in productlist.jsp is the following:
<li> <a href="<isa:webappsURL name="b2b/productdetail.do"/><%=ShowProductDetailAction.createDetailRequest(product,displayScenario) %>">
<%=JspUtil.encodeHtml(product.getDescription()) %>
</a> </li>
and the code for displaying products's images in ProductDetailsISA.jsp is this:
<td width="7%" rowspan="2" headers="Product image">
<img src="<isa:imageAttribute guids="DOC_PC_CRM_IMAGE,DOC_P_CRM_IMAGE" name="webCatItem" defaultImg="mimes/shared/no_pic.gif"/>" width="250" height="250"/>
</td>
I have no idea how isa:imageAttribute tag works, so I was wandering if this problem is somehow connection with the inner workings of this tag.
Could someone help please?
Thank you very much in advance
I think this is not the right forum to post your Question
Similar Messages
-
Issues with Loading Images from a Jar File
This code snippet basically loops through a jar of gifs and loads them into a hashmap to be used later. The images all load into the HashMap just fine, I tested and made sure their widths and heights were changing as well as the buffer size from gif to gif. The problem comes in when some of the images are loaded to be painted they are incomplete it looks as though part of the image came through but not all of it, while other images look just fine. The old way in which we loaded the graphics didn't involve getting them from a jar file. My question is, is this a common problem with loading images from a jar from an applet? For a while I had tried to approach the problem by getting the URL of the image in a jar and passing that into the toolkit and creating the image that way, I was unsuccessful in getting that to work.
//app is the Japplet
MediaTracker tracker = new MediaTracker(app);
//jf represents the jar file obj, enum for looping through jar entries
Enumeration e = jf.entries();
Toolkit toolkit = Toolkit.getDefaultToolkit();
//buffer for reading image stream
byte buffer [];
while(e.hasMoreElements())
fileName = e.nextElement().toString();
InputStream inputstream = jf.getInputStream(jf.getEntry(fileName));
buffer = new byte[inputstream.available()];
inputstream.read(buffer);
currentIm = toolkit.createImage(buffer);
tracker.addImage(currentIm, 0);
tracker.waitForAll();
images.put(fileName.substring(0, fileName.indexOf(".")), currentIm);
} //while
}//try
catch(Exception e)
e.printStackTrace();
}compressed files are not the problem. It is just the problem of the read not returning all the bytes. Here is a working implementation:
InputStream is = jar.getInputStream(entry);
ByteArrayOutputStream os = new ByteArrayOutputStream(1024);
try{
byte[] buf = new byte[1024];
int read;
while((read = is.read(buf)) > 0) {
os.write(buf, 0, read);
catch(Exception e){
e.printStackTrace();
return null;
image = Toolkit.getDefaultToolkit().createImage(os.toByteArray());
This works but I think you end up opening the jar a second time and downloading it from the server again. Another way of getting the images is using the class loader:
InputStream is = MyApplet.class.getResourceAsStream(strImageName);
In this case, the image file needs to be at the same level than MyApplet.class but you don't get the benefit of enumerating of the images available in the jar. -
Issue with display data from infoset
Dear Experts,
When I am trying to display data from BI INFOSET in (Execute in background ctrl+F2)backend it is working fine but when in try to run the execution in forground (execute F8) then the system gets hang.. and time out. could any one has this kind of experience. if so kindly let me know do i need to implement any patch or else which way i can do work to resolve this issue.
Thanks in advance.
MannuHi Krishna,
I have tried as you have suggested ie. using Tcode RSISET for displaying data but still i have the same issue.
Could any one post any additional suggestions to follow.
Thanks in advance,
Mannu -
Major Issues with printing Images from applet
Hi,
I am currently working on an automated report generation software. The Project Goal is simple, all i need to do is to connect to Access Database, and get all the information onto the applet in an arranged format and display it on the webpage. Now here is the deal... The applet will only be used on a single local machine, (Why Applet?? because i need to print the report... applet viewer will also do). I am able to make the connection to the database from the applet viewer, but fail miserably if i try to do it from Internet Explorer. So i gave up on the IE. The major problem is, on applet i have a ImageViewer (I am using "symantec.itools.multimedia.ImageViewer", if you have an alternative that works then please lemme know). I have a method that sets diffrent Images in the Imageviewer, depending upon what record is being dispalyed. In otherwords, every record has an image associated to it. and i want to display the Image with the data.
Now when i run the applet in appletviewer, it works perfect, BUT.... when i go to print it (using the print in the appletviewer's menu), It print everything EXCEPT the Image..... The Image happens to the main peice of Information, so rest of the code is worthless unless the image is displayed...
Please help me with this project. I have failed many times trying to print it. If you need the code please email me @ [email protected] i will send the code to you, with a sample database.
Please help
VaibhavHi,
I am currently working on an automated report
generation software. The Project Goal is simple, all i
need to do is to connect to Access Database, and get
all the information onto the applet in an arranged
format and display it on the webpage. Now here is the
deal... The applet will only be used on a single local
machine, (Why Applet?? because i need to print the
report... applet viewer will also do). I am able to
make the connection to the database from the applet
viewer, but fail miserably if i try to do it from
Internet Explorer. So i gave up on the IE. An Applet can't connect to an URL or file that isn't in his applet.getCodeBase() directory or subdir. For that to happen you have to create a profile add that profile to your java virtual machine etc.
To much work just use an application.
The major
problem is, on applet i have a ImageViewer (I am using
"symantec.itools.multimedia.ImageViewer", if you have
an alternative that works then please lemme know). I
have a method that sets diffrent Images in the
Imageviewer, depending upon what record is being
dispalyed. In otherwords, every record has an image
associated to it. and i want to display the Image with
the data.Why don't you use a panel with the paint method
use the
java.awt.Graphics.drawImage()
method
It draws the normal image files( e.g. gif jpeg npg etc.)
Now when i run the applet in appletviewer, it works
perfect, BUT.... when i go to print it (using the
print in the appletviewer's menu), It print everything
EXCEPT the Image..... The Image happens to the main
peice of Information, so rest of the code is worthless
unless the image is displayed...
Please help me with this project. I have failed many
times trying to print it. If you need the code please
email me @ [email protected] i will send the
code to you, with a sample database.
Please help
VaibhavYour trying to use the appletviewer to print for you I wouldn't do that
Why don't you just write your own print method by using the java print from sun.
some links
http://java.sun.com/printing/
http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html#intro
http://java.sun.com/j2se/1.4/docs/guide/jps/
hope this help you on your way.
greetz pietje -
I tried to display gif image from oracle to jsp but nothing appear
i tried to display image from oracle DB to jsp directly without using file processing , and i used Servlet and jsp , Servlet to get image from DB and jsp to use <img> tag , when i Run Servlet code
the image appaer on Microsoft Photo Editor , and when i run jsp the image dose not appear on jsp page , so please anyone has an idea about this broblem ,send the soluation or any information to my e-mail [email protected] , and I'll thankful about your help.
the Servlet and jsp code are below .
thank for your help
Servlet:
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.PrintWriter;
import java.io.IOException;
public class Servlet extends HttpServlet
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
response.setContentType("image/gif");
int id = Integer.parseInt(request.getParameter("no"));
// int id = 2 ; when Run Servlet .
ResultSet rs = null;
Connection Lcon = null;
String stmt = " select Image from ImageTable where lmage_id ="+id;
Statement sm = null;
String data1 ="";
try
Lcon = getConntcion();
sm = Lcon.createStatement();
rs = sm.executeQuery(stmt);
if(rs.next())
InputStream in = rs.getBinaryStream(1);
ServletOutputStream sout = response.getOutputStream();
int c;
while((c=in.read())!= -1)
sout.write(c);
in.close();
sout.flush();
sout.close()
}catch(Exception e)
System.out.println("error in selectValue the error is "+e);
finally
rs .close( );
sm .close( );
Lcon.close( );
public Connection getConntcion()
Connection con = null;
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection(",,,,,,,, DB Info ,username and password ,,,,,,,,,,,");
}catch(Exception e)
System.out.println("error in connection the error is "+e);
return con;
Jsp code :
<%@ page contentType="text/html"%>
<html>
<head
</head>
<title> testing image </title>
<body>
<form>
<img src="servlet/Servlet?no=2">
</form>
</body>
</html>InputStream in = rs.getBinaryStream(1);
byte[] image= null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buffer = new byte[8192];
int bytesRead = 0;
while ((bytesRead = in.read(buffer, 0, 8192)) != -1)
baos.write(buffer, 0, bytesRead);
image= baos.toByteArray();
in.close();
ServletOutputStream sout = response.getOutputStream();
if (image != null)
sout.write(image);
sout.flush();
} -
Problem Displaying image from blob
Hi all,
I m using,
Database : 10g Rel 2
Frontend : DevSuite 10g
OS : WinXp
Browser : IE 6
Problem : In my forms i m displaying images from blob column but some of the images are not displayed. I have tried with all image formats available in combination with all available display quality but no luck. What could be the reason for it and how do i solve it?
Can anyone help me plz?
Thnx in advance.
ImtiazHello,
It is very difficult for us to "guess" what images you can read and what others you cannot.
Maybe you could provide more information on images that are not displayed ?
What is their native format ?
Francois -
Issue with displaying Greek characters in Oracle 11.1
Hi,
We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
I believe that it is a issue with DB settings, although not sure of what is the setting.
Below is the result after running the query: select * from nls_database_parameters
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.1.0.6.0
Please help.869852 wrote:
Hi,
We are having issues with display of Non-English language (for ex Greek) text on Pega-PRPC. The text is stored in a reference table in Oracle DB. However there is not need of translation in PRPC as it has the capability of displaying non-english language also.
I believe that it is a issue with DB settings, although not sure of what is the setting.
The first question that needs to be answered is whether the problem is a data storage problem or data presentation problem.
The query below will answer this question.
SELECT ASCIISTR(greek_column) from greek_table where key_id = <specific_value>; -
Display Images from HTMLDB_APPLICATION_FILES Table?
How do I display images from the HTMLDB_APPLICATION_FILES Table?
Are the contents full available potentially for display? Or only after I have written them to another display?
Please advise what I need to do or what corrections below is required:
The calling procedure is a item in a SELECT statement as part of a report query:
<P>
<(img src="#OWNER#.download_HAF_file?p_file= ' || nvl(ID,0) || ' height="50" width="50" )>, HAFimg<P>
The Procedure is a adaptation of the Chapter 8 Exercise of the 2 day developer guide:
CREATE OR REPLACE PROCEDURE "DOWNLOAD_HAF_FILE" (p_file IN NUMBER) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, NAME, DBMS_LOB.GETLENGTH(BLOB_CONTENT)
INTO v_mime, lob_loc, v_file_name, v_length
FROM HTMLDB_APPLICATION_FILES
WHERE ID = p_file;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( NVL(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||SUBSTR(v_file_name,INSTR(v_file_name,'/')+1)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
END Download_HAF_File;
/Message was edited by:
luddite1812I believe you put HTML "pre" tags around your quote (with square brackets, I can't type them here because they'll be escaped).
If the example below looks formatted then using "pre" works, if not...then ignore me ;)
begin
select
count(*)
into
v_count
from big_table;
end; -
Hello!
Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
So.. I have the interactive report
table test (
NAME NOT NULL VARCHAR2(4000)
ID NUMBER
BLOB_CONTENT BLOB
MIME_TYPE VARCHAR2(4000))
I need to display the column blob_content.
Thnks a lot.1009316 wrote:
Hello! Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1009316".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
So.. I have the interactive report
table test (
NAME NOT NULL VARCHAR2(4000)
ID NUMBER
BLOB_CONTENT BLOB
MIME_TYPE VARCHAR2(4000))
I need to display the column blob_content.This is described in the documentation: About BLOB Support in Forms and Reports and Display Image. There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well. -
Issues with RAW files from my 7D
I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
Any words of advice, other than just buy Aperture 3??I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......
-
How to display image from wamp if the data type i use is blob?
please help me with the problem of displaying image from wamp if data type is blob. Thanks
Don't store the images in the database. Store the image file names in the database and put the images in a folder.
-
Issue with displaying summary in the Page Bottom
Hi Friends,
I have an issue with displaying summary in the page bottom. for this i am using command BOTTOM and ENDBOTTOM in Main Window.
I designed 2 pages are First and Next, in the first it displays PO Header details and Item details in the Main window and also Item details continuious in the Next Page also.
If the lines are enough in Bottom then it displays the summary. But if the lines are not enough in bottom then it does not trigger the new page, so that it doesn't displays the Summary in Bottom.
for ex: Total lines of the page 50 and Bottom required 15 lines. In the next page contains upto 35 lines, it triggers the Bottom.
But if the lines are more than 35 and below than 50, it does not trigger the new page so that it does not shows the bottom.
Please help me on the same, this is very urgent.I will give a rewatrd if it is helful.
Regards,
SubbaraoHI,
Try with printing the bottom data with Protect and ENDPROTECT along with your Bottom and endbottom.
Eg: Protect
bottom
text
endbottom
endprotect.
Regards,
Venkatesh -
I am having issues with streaming music from iTunes on my MacBook Pro to my audio system through AirPlay. Works perfectly with my iPod Touch. The AirPlay icon appears irregularly in iTunes and when selected doesn't connect. Running latest IOS software.
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Unsync all music and resync
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device.
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar
You said:
No, I do not want to "factory reset" my iPod. No I do not wish to do anything crazy long or hard to fix this.
That may be necessary, It is not what you want to do/not do but what is required to resolve your problem. -
My iphone 4s suddenly displays images from Yahoo, Google, and Flickr at a low resolution. I have IOS 7.0.4. My phone camera works fine, but any web based photo content from Safari, Yahoo images, Google images, and Flickr all come in pixelated and low res. What's the deal?
It happened to me but later I figured out that cellular signal was not that great and so the Internet was very slow. It took me about 2 minutes to get the full resolution picuture on either of the app you've described. Try to get faster internet either by wifi or good signal and then check.
-
hey frnd,
plz check this link
http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html
hey frnds,
while using this multiple print datagrid code, getting 1 issue with
print image in printheader mxml file.
I'm adding 1 image tag and runtime getting image path in variable and
want to print tht image in header ,
but it is not get printed but if i'm giving @Embed image as a source
then it is print.
Is any way there to print runtime image after adding in printheader
file ?
thx in advanced,
[email protected]is any solution there ?
Maybe you are looking for
-
Linking external drive to HP Stream 14
I have recently bought a HP Stream 14 and had already backed up my iTunes library to an external hard drive. When installing new iTunes to Windows 8.1 OS I tried to link the external hard drive through advanced preferences (due to limited storage on
-
Menu not found (FRM-10205)
Hi, people!! I'm deploying a forms application with a menu. I've compiled both form and menu modules. In spite of that, when I try to run the form, I get the follow error message: Menu [menu_file_name.mmx] not found The file exists and the path is sp
-
QUERY - selection fields.
Hi, I create QUREY for QM notification, with info set - logical database QNQ. In the selection fields i ask for WORK CENTER and CODINIG, but i have no browser for those fields. thank you Aviva.
-
No data found error on Pl/SQL
Hi All, I write Pl/SQL that have package(procedure) to call some function like this : Main Procedure Call Function SubA Function SubA BEGIN begin select sale_by into v_saleby from myTable where.... end; return(nvl(v_saleby,0)); END; so, I execute thi
-
Can Users Home Directory be on Linux Host?
For improved file sharing reasons, we have added a Linux server (Ubuntu) to our infrastructure. This server will house our shared files and run the NFS service (Apple's NFS implementation is not adequate for our high i/o needs). The rest of our infra