Image related problem.
Hi,
I have created html report with type plsql anonymous block.
my same application is running offline as well online. my code is working well online. image is displaying in html report. but when i run same code in off line application.image is not appearing. whats problem.
i am sending portion of the code.
<TR BGCOLOR="#DEB887">
<td ><left><B>Father Name</b></td>
<td ><left>'||INITCAP(REC.FATHER_NAME)||'</td>
<td rowspan="6" colspan="2" ><center>
<img src="#OWNER#.my_image_display_student?p_image_id='
|| :P10_STUDENT_ID || '" /></td>
</tr>please help me to rectify this problem.
Thanks & Regards
Nisha
Hi,
I am using oracle database 10g release2(10.2.0.1.0) and i upgraded it with apex_3.2.1. and this is the code and table which i used to display the images in my application.
CREATE TABLE "STUDENT_PERSONAL_DETAILS"
( "S_NO" NUMBER NOT NULL ENABLE,
"STUDENT_ID" NUMBER NOT NULL ENABLE,
"STUDENT_IMAGE" BLOB,
"MIMETYPE" VARCHAR2(255),
"FILENAME" VARCHAR2(400),
"IMAGE_LAST_UPDATE" DATE,
CONSTRAINT "STUDENT_PERSONAL_DETAILS_CON" PRIMARY KEY ("STUDENT_ID") ENABLE
CREATE OR REPLACE PROCEDURE "MY_IMAGE_DISPLAY_STUDENT" (p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT MIMETYPE,STUDENT_IMAGE, FILENAME, DBMS_LOB.getlength (STUDENT_IMAGE)
INTO l_mime, lob_loc, l_file_name, l_length
FROM STUDENT_PERSONAL_DETAILS
WHERE STUDENT_ID = p_image_id;
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
END my_image_display_student;
<TR BGCOLOR="#DEB887">
<td ><left><B>Father Name</b></td>
<td ><left>'||INITCAP(REC.FATHER_NAME)||'</td>
<td rowspan="6" colspan="2" ><center>
<img src="#OWNER#.my_image_display_student?p_image_id='
|| :P10_STUDENT_ID || '" /></td>
</tr>this statement i used to grant the dad user----
grant execute on apex_public_user to anonymous
i try to grant the dad user i got the error "insufficient privileges"
Thanks & Regads
Nisha
Edited by: Nisha Rani on Sep 23, 2010 4:05 AM
Similar Messages
-
New MacBook Pro Image Related Problems
Hello,
I see that there are already a lot of issues centering around networking problems with the new MacBook Pro. I would like to add mine to the list (I will be opening a ticket with AppleCare after this post).
I work for an educational institution, and one of the things we need is imaging capability to restore a notebook/computer to a "clean" state.
This has worked fine for all of our previous MacBook(Pro)s and desktop systems.
The new MacBook Pro is a big problem.
1. It won't netboot (yes, I've created a new netboot image with the base image from a new MacBook Pro). Bootup dies, and sits there with an AppleYukon2 rcv ring overflow message being repeated.
2. After being imaged with a 3rd party application (Casper), it won't communicate properly with Apple servers (roughly 1MB/Sec on a Gigabit network). Console log reveals an AppleYukon2 rcv ring overflow error message being repeated. Oddly enough communications with Windows servers is GREAT! But SMB file transfers between Apple servers ends up with the same AppleYukon2 error message.
3. After being imaged with APPLE'S DISK UTILITY, I get the same results as the 3rd party utility.
I would like to know if anyone else who is working with disk imaging is have the same problem with the new MacBook Pros.
Has anyone else experience AppleYukon2 error messages with a rcv ring overflow?
Thanks,
Josh Nudell
IT Manager
iMac, MacBook(Pro), MacPro, Xserve Mac OS X (10.4.10)1. It won't netboot (yes, I've created a new netboot
image with the base image from a new MacBook Pro).
Bootup dies, and sits there with an AppleYukon2 rcv
ring overflow message being repeated.
. After being imaged with a 3rd party application
(Casper), it won't communicate properly with Apple
servers (roughly 1MB/Sec on a Gigabit network).
Console log reveals an AppleYukon2 rcv ring overflow
error message being repeated. Oddly enough
communications with Windows servers is GREAT! But
SMB file transfers between Apple servers ends up
with the same AppleYukon2 error message.
. After being imaged with APPLE'S DISK UTILITY, I
get the same results as the 3rd party utility.
I would like to know if anyone else who is working
with disk imaging is have the same problem with the
new MacBook Pros.
Has anyone else experience AppleYukon2 error messages
with a rcv ring overflow?
YES, We do.
Brand new MacBookPro 17". Everything fine as standalone.
We plug it in our 1000BaseT (Gigabit) LAN. Transfer speed drops dramatically after about 30 seconds. Our 300MB test file transfer takes approx 90 minutes, not 30 seconds as usual. No error messages to the user, just an extreme slowness. Digging with console, we notice a repeating line (every second or two): "kernel[0]: AppleYukon2: 00000000,00000000 skgehw - cppSkDrvEvent - SKDRV_RXOVERFLOW: rcv ring overflow ", and sometimes this one: "AppleYukon2: 00000000,00000000 sky2 - RX ring overflow -- dropped a packet" or "AppleYukon2: 00000000,00000000 sky2 - RX ring overflow -- dropped 2 packets".
There is an option to stop the problem: we slow down to 100BaseTX the Eth speed (Network/Ethernet) and everything works, at moderate speed.
Oddy enough, if we: a) plug in or plug out a USB peripheral (as a card reader); or b) plug in or plug out a FireWire peripheral (as an external disk); or even c) mount or unmount a connected FireWire external disk; then the speed arises and console stops to get the error lines. Anyway the good effect lasts for 30 secons, then again in the mess. In short, if you repeatedly plugin/plugout you can transfer files.
For sure we will ask Apple, this is our situation at the present time.
MacBook Pro 17" Mac OS X (10.4.10) -
How do you display images relative to a Portlet JSP page?
For Welblogic Portal 7.0, I want to display a simple image (.gif) on a JSP page.
The problem is that I need to use a 'hard coded' url to the image such as the following:
<img src="portlets/test/images/test.gif" border="0" alt="Test 1">
- OR -
<img src="<webflow:createResourceURL resource="/portlets/test/images/test.gif" />"
border="0" alt="Test 2">
This makes the portlet less portable.
My goal is to display an image relative to the current JSP Portlet page (in the test
directory).
Does anyone know how to accomplish this?
In WL Portal 4.0 I used:
<img src="<%=fixupRelativeURL(pathFromRequest(request) + "images/test.gif", request)%>"
width=24 height=22 border=0 alt="test">
This does not work anymore as fixupRelativeURL does not seem to exist in the 7.0
API.
Your help would be greatly appreciated!
Thanks,
MattExactly what I was looking for!
Thank you Subbu.
Subbu Allamaraju <subbuATBeaDOTCom> wrote:
Matt,
There is an indirect way to achieve this.
(a) In your portlet JSP, get the PortletState. There is an example in
/framework/portlet.jsp.
(b) Get the content URL for this portlet by calling
portletState.getUrl(Portlet.URL_CONTENT).
Depending on where your image is (with respect to the content URL), you
can construct a new URL to the image. For example if your content is at
at /portlets/myportlet/foo.jsp and your image is in at
/portlets/myportlet/images/myimage.gif, you can reconctruct the latter
from the first one.
Once you do this, prepend the constructed URL with the web app context
root (request.getContextPath()).
Hope this helps.
Subbu
matt wrote:
For Welblogic Portal 7.0, I want to display a simple image (.gif) on aJSP page.
The problem is that I need to use a 'hard coded' url to the image suchas the following:
<img src="portlets/test/images/test.gif" border="0" alt="Test 1">
- OR -
<img src="<webflow:createResourceURL resource="/portlets/test/images/test.gif"/>"
border="0" alt="Test 2">
This makes the portlet less portable.
My goal is to display an image relative to the current JSP Portlet page(in the test
directory).
Does anyone know how to accomplish this?
In WL Portal 4.0 I used:
<img src="<%=fixupRelativeURL(pathFromRequest(request) + "images/test.gif",request)%>"
width=24 height=22 border=0 alt="test">
This does not work anymore as fixupRelativeURL does not seem to existin the 7.0
API.
Your help would be greatly appreciated!
Thanks,
Matt -
Problem description:
I have ordered a new iMac but my current one seems to be running really slowly. I believe it to be a memory related problem but can’t seem to identify what is causing it. Your help is greatly appreciated.
EtreCheck version: 2.1.8 (121)
Report generated March 7, 2015 at 4:01:26 PM PST
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
iMac (24-inch, Early 2008) (Verified)
iMac - model: iMac8,1
1 2.8 GHz Intel Core 2 Duo CPU: 2-core
2 GB RAM Upgradeable
BANK 0/DIMM0
1 GB DDR2 SDRAM 800 MHz ok
BANK 1/DIMM1
1 GB DDR2 SDRAM 800 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
ATI Radeon HD 2600 Pro - VRAM: 256 MB
iMac 1920 x 1200
System Software: ℹ️
OS X 10.10 (14A389) - Time since boot: 23 days 18:5:35
Disk Information: ℹ️
ST3320820AS_Q disk0 : (320.07 GB)
EFI (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 319.21 GB (195.05 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
USB Information: ℹ️
HP Officejet 6000 E609n
Apple, Inc. Keyboard Hub
Primax Electronics Apple Optical USB Mouse
Apple, Inc Apple Keyboard
Apple Inc. Built-in iSight
Western Digital External HDD 500.11 GB
My Passport (disk1s1) /Volumes/My Passport : 500.11 GB (200.60 GB free)
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/Popcorn 4/Popcorn.app
[not loaded] com.roxio.TDIXController (2.0) [Click for support]
/System/Library/Extensions
[not loaded] com.aliph.driver.jstub (1.1.2 - SDK 10.7) [Click for support]
Problem System Launch Agents: ℹ️
[killed] com.apple.accountsd.plist
[killed] com.apple.AirPlayUIAgent.plist
[killed] com.apple.bird.plist
[killed] com.apple.CalendarAgent.plist
[killed] com.apple.CallHistoryPluginHelper.plist
[killed] com.apple.CallHistorySyncHelper.plist
[killed] com.apple.cloudd.plist
[killed] com.apple.cmfsyncagent.plist
[killed] com.apple.coreservices.appleid.authentication.plist
[killed] com.apple.coreservices.uiagent.plist
[killed] com.apple.EscrowSecurityAlert.plist
[killed] com.apple.nsurlsessiond.plist
[killed] com.apple.pluginkit.pkd.plist
[killed] com.apple.printtool.agent.plist
[killed] com.apple.rcd.plist
[killed] com.apple.recentsd.plist
[killed] com.apple.sbd.plist
[killed] com.apple.scopedbookmarkagent.xpc.plist
[killed] com.apple.secd.plist
[killed] com.apple.security.cloudkeychainproxy.plist
[killed] com.apple.spindump_agent.plist
[killed] com.apple.telephonyutilities.callservicesd.plist
22 processes killed due to memory pressure
Problem System Launch Daemons: ℹ️
[killed] com.apple.AssetCacheLocatorService.plist
[killed] com.apple.awdd.plist
[killed] com.apple.ctkd.plist
[killed] com.apple.diagnosticd.plist
[killed] com.apple.emond.aslmanager.plist
[killed] com.apple.GSSCred.plist
[killed] com.apple.icloud.findmydeviced.plist
[killed] com.apple.ifdreader.plist
[killed] com.apple.nehelper.plist
[killed] com.apple.nsurlsessiond.plist
[killed] com.apple.periodic-daily.plist
[killed] com.apple.periodic-monthly.plist
[killed] com.apple.periodic-weekly.plist
[killed] com.apple.softwareupdate_download_service.plist
[killed] com.apple.softwareupdated.plist
[killed] com.apple.spindump.plist
[killed] com.apple.tccd.system.plist
[killed] com.apple.wdhelper.plist
[killed] com.apple.xpc.smd.plist
[killed] org.cups.cupsd.plist
20 processes killed due to memory pressure
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[loaded] com.sonos.smbbump.plist [Click for support]
User Login Items: ℹ️
iTunesHelper UNKNOWN Hidden (missing value)
Jawbone Updater Application (/Applications/Jawbone Updater.app)
Dropbox Application (/Applications/Dropbox.app)
Internet Plug-ins: ℹ️
Photo Center Plugin: Version: Photo Center Plugin 1.1.2.2 [Click for support]
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
Default Browser: Version: 600 - SDK 10.10
Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.3
OfficeLiveBrowserPlugin: Version: 12.3.6 [Click for support]
CitrixICAClientPlugIn: Version: 11.2.0 [Click for support]
iPhotoPhotocast: Version: 7.0
3rd Party Preference Panes: ℹ️
Citrix Online Plug-in [Click for support]
Flash Player [Click for support]
UE Smart Radio [Click for support]
Time Machine: ℹ️
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 319.21 GB Disk used: 124.16 GB
Destinations:
Time Machine Backups [Local]
Total size: 3.00 TB
Total number of backups: 98
Oldest backup: 2013-08-28 05:45:36 +0000
Last backup: 2014-12-30 19:39:32 +0000
Size of backup disk: Excellent
Backup size 3.00 TB > (Disk size 319.21 GB X 3)
Top Processes by CPU: ℹ️
5% com.apple.WebKit.Plugin.64
3% WindowServer
2% sysmond
0% AppleSpell
0% com.apple.WebKit.Networking
Top Processes by Memory: ℹ️
41 MB Finder
41 MB iTunes
37 MB Safari
32 MB com.apple.WebKit.Plugin.64
32 MB mds
Virtual Memory Information: ℹ️
53 MB Free RAM
501 MB Active RAM
463 MB Inactive RAM
398 MB Wired RAM
78.46 GB Page-ins
3.04 GB Page-outs
Diagnostics Information: ℹ️
Mar 7, 2015, 12:41:34 PM /Library/Logs/DiagnosticReports/Inkjet4_2015-03-07-124134_[redacted].crash
Mar 5, 2015, 07:42:29 PM /Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2015-03-05-194229_[ redacted].crashThat certainly looks like a low memory issue, 2 GB ram is barely enough to run Mac OS X versions from Lion through Yosemite. The high number of Page Outs and killed processes show very high memory pressure.
Try adding memory, but be sure it is high quality, Mac certified memory such as that from OWC, http://www.macsales.com or Crucial, http://www.crucial.com -
i have LR5 on a mac book pro with a WD external hard drive with my with my LR5 images . my problem is my external drive is corrupted .i was told by apple that my macshow the hard drive is there but it is not moumting and have to be reformat. i have to use recovery data to save my images on my external before i can refomat.iam willing to lose my images on my extenal hard drive but i would like to know can i erase my LR5 images and start over or delete LR5 and download it again
Simply start a new catalog:
File >> New Catalog
Choose a new name and save.
When the empty catalog launches you are ready to start over. -
My iMac 27" Late 2012 has Image Persistence Problem
I'm wondering what to do about an annoying image persistence problem on my 27" late 2012 iMac. I got the iMac just a few days ago. Monday actually, so 4 days ago.
It's the 3.4GHz i7, 8GB, NVIDIA 680MX 1TB fusion drive model.
Overall it has become the love of my life, but the image persistence thing is getting harder to ignore. This happens after only a few minutes of use. If I follow Apple's instruction on dealing with LCD image persistence, I can make it go away for a while, but it comes back very quickly.
It is extremely noticeable on a plan dark background. It looks as thought he screen has been left on for a very long time with the same windows open, but it occurrs in less than 5 minutes of use with nothing more intense than a bit of web surfing.
I've read that this is happening a great deal on these new iMacs, particularly teh 27" machines.
While the problem seems to be known to those of us afflicted I don't know if Apple has acknowledged an issue or not.
Here is a sample of the complaints: http://forums.macrumors.com/showthread.php?t=1509571
I can make the ghost image vanish by bringing up an all white scree for a minute or so or using LCD Scrub.
I'm wondering if anyone else has foun a solution other than asking for a replacement computer, which Apple seems to be granting on this issue?Avoiding image persistence on Apple (IPS) displays
Avoiding image persistence on Apple LCD displays
If you cannot resolve the issue yourself, then return the computer for a replacement. You may do this freely within 14 days from date of purchase, so don't delay. -
Problem: codebase, jar and image reloading problem please help!
Hi Java Gurus,
I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
<applet code="CameraApplet.class"
archive="doorcam.jar"
codebase = "webcam/classes"
width="375" height="475">
<param name="imagePath" value="http://judge/webcam/images">
<param name="webCamImage" value="door.jpg">
<param name="COMPort" value="COM2">
<param name="frameRate" value="10"> <!-- could not exceed more than 10-->
<param name="host" value="judge">
</applet>
The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
private void refresh(final URL url) {
Image webCamImage =getImage(url);
webCamImage.flush(); // flush out the previous image
webCamImage = getImage(url); // get a new image
webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
The problem is so strange that I could not find any way to solve it.
It would be a great help to me if somebody provide me some work around to the problem.
I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
Thank you all very much in advance.
best regards,
JudgeThank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
I think its the problem between IE browser and Java Plug-in.
I which SUN would find these incompatibilities and solve these problems.
I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
I have seen so many people in the forums with all sorts of problems because of this.
Right now I m desperately looking for work around to my problem.
If somebody would provide me with the solution to my problem it would be a great help to me.
thank you all so much.
best regards,
Judge -
GUI related problem in solaris 8 02/04
Hello all,
I am facing GUI related problem in the software running on solaris when I upgraded from solaris 8 02/02 to 8 02/04.
The GUI which was working fine on 02/02 was giving some menu selection problem in 02/04. In GUI applications i was unable to select items after double clicking it in solaris 8 02/04 while it was working fine in solaris 8 02/02.
Are there any O.S. related problem?
Thanks and regards,
AnkitWolfgang073 wrote:
Hi guys and ladys!
I added the LD_LIBRARY_PATH, Why are you doing that. It's probably a bad idea.
but the Openwindows not run OK (e.g. start cmdtool window without csh % prompt etc.).That's very possible. Don't make global changes to LD_LIBRARY_PATH (by putting in your login files for example). Instead if you need it to run a particular program, make a wrapper that sets the variable and then calls the program. That will limit the scope of those changes.
vi .login
# Erasing LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH
# Important Paths set
setenv LD_LIBRARY_PATH /usr/ucblib:$LD_LIBRARY_PATHDon't do that.
Darren -
SSRS indicator image display problem!!
Hello ALL;
I am having problem with displaying indicator image in DEV report manager. but same rdl works in QA environment. Both server has SP1 installed. Any Idea? Appreciate for your help. Thanks,Hi Techchi,
Based on the limited information, I cannot figure it out for this issue. As per my understanding, I think this issue can be caused by the browser that run the report manager. If you use IE explorer to render the report, I suggest that you can try to run
it in compatibility mode. If you are using another browser, I recommend that you should use IE explorer to render the report to check the issue again.
If this issue still exists, in order to solve the problem more efficiently, I need to clarify some information.
Are all reports with indicator image cannot render well in DEV report manager? Or just this one report?
What is the phenomenon about the indicator image display problem? Could you please post a screenshot about this?
It is benefit for us to do further analysis. Thank you for your understanding.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Having a image alignment problem using clearbox
Hi,
I'm having an image alignment problem. I cannot figure it out. I'm using the clearbox - lightbox dreamweaver widget. Using Dreamweaver CS6.
Actual page located here. Any help would be appreciated.
http://dirtysouthink.com/gallery/dustin2.htmlThis has very little to do with Dreamweaver. DW is merely a tool to assist you in building a web site. It is purely a matter of styling (CSS).
When I look at the structure, I see
BODY-CONTENT (width: 490px)
GALLERY (width: 452px)
CONTAINER (width: 500px)
ITEM (width: 150px)
From this I can deduce that:
GALLERY will fit inside BODY-CONTENT
CONTAINER will NOT fit inside GALLERY or BODY-CONTENT
ITEM will fit three times into CONTAINER
To start with, I would reduce the size of the CONTAINER so that it fits inside of its parent. Then I would adjust the width of the ITEM so that only two of them fit inside of the CONTAINER. -
How to solve the image display problem in the iTunes Store
Hi guys!
I just want to give a work-around for all of you having the image display problem in the iTunes Store. In my case only the square images in the slider sections won't load:
I had this in my last W7-installation and got it again in W8 after the first few weeks.
There are a lot of reports about this problem out there and adhoc solutions like 'clear the cache' or 'reinstall and drink ice tea' that do not work. It is obviously a file request error. It is all about finding out which server addresses get blocked by your computer.
Solution: Go to your firewall and your Anti-virus-program. There must be a whitelist option. In Kaspersky, check the web-options, the banner-options and the firewall-options, because the all have whitelists. The following addresses have to be whitelisted:
*.apple
*.mzstatic.apple.com.akadns.net
*.mzstatic.com.edgesuite.net
*.da1.akamai.net
*.itunes.apple.com
se.itunes.apple.com
upp.itunes.apple.com
ax.init.itunes.apple.com
xp.apple.com
*.mzstatic.com
client-api.itunes.apple.com
www.apple.com.edgekey.net
www.isg-apple.com.akadns.net
Press Ctrl + R in the iTunes Shop then and browse throught the music sections. All images should be displayed correctly now.
If not, there might be more Apple servers involved in your case. You can find them by running a DNS sniffing tool like the DNS query sniffer by Nirsoft or Wireshark.Phone restarting randomly could be loose battery. Tighten by putting a small strip of electrical tape on the back edge.
THE BITTERNESS OF POOR QUALITY, LINGERS LONG AFTER THE CHEAPNESS OF PRICE, IS SOON FORGOTTEN. -
Image reading problem in servlet
Image reading problem in servlet
I am reading an image in servlet and writing it to ServletOutputStream
The following code works fine unless I change the size of the byte array (for increasing download speed) from 8 to something like 128 or any other higher value
If I change the value of byte array size the image does not get downloaded properly, I mean the quality of the image changes, it does not looks like the original imageURL url = new URL("http://www.mysite.com/images/img1.jpg");
URLConnection con = url.openConnection();
con.setUseCaches(false);
BufferedInputStream in = new BufferedInputStream(con.getInputStream());
BufferedOutputStream out = new BufferedOutputStream(response.getOutputStream());
byte b[] = new byte[8];
while(in.read(b) != -1)
out.write(b);
out.flush();
out.close();
in.close();what do I change
byte array size
or use the constructor of BufferedInputStream with 2 parameter
or use the constructor of BufferedOutputStream with 2 parameter
or use flush outside while loop or what elseChange your while loop to:
int count;
while((count = in.read(b)) != -1)
out.write(b, 0, count);
out.flush();
}The penultimate time read is called, it may not fill the entire byte array. You only want to write out however much was read into the array.
For better performance, you should move the flush() outside of the loop too. BufferedOutputStream will flush automatically when its internal buffer is full. -
hi, i have an image inside an iframe that i'm trying to
change upon the click of a button. i use the following code:
<SCRIPT language="JavaScript" type="text/javascript">
function swapImage(intImage){
var
imgs=["images/pic0.jpg","images/pic1.jpg","images/pic2.jpg","images/pic3.jpg","images/pic 4.jpg",
"images/pic5.jpg"];
parent.frames['cont'].document.getElementById('mgmnt_pic').src =
imgs[intImage];
alert(parent.frames['cont'].document.getElementById('mgmnt_pic').src)
</SCRIPT>
then in body:
<p><a href="javascript:; "
onclick="frames['cont'].swapImage(0);">Management
Team</a></p>
i know from the alert that it is changing the source of my
image, the problem is that the image itself is not changing at all.
has anyone experienced this before? what can i do to fix it?Hi,
chk the link
http://javascript.internet.com/miscellaneous/random-image.html
shanthi -
[Solved] Can't upgrade system - cups related problem
Hi,
I can't upgrade (pacman -Syu) my system due some cups related problems.
AS you can see, although the problem seems to be cups related, none of the other packages has been upgarded as well.
Please advise.:mad:
Thanks,
Michael Badt
Here's a copy of my terminal (all packages get downloaded):
Targets (10): dbus-core-1.2.24-1 bluez-4.63-1 libcups-1.4.2-5 cups-1.4.2-5 dbus-1.2.24-1 gsfonts-1.0.7pre44-2 openssl-0.9.8n-1 net-snmp-5.5-2
pcre-8.02-1 xine-lib-1.1.18.1-1
Total Download Size: 0.00 MB
Total Installed Size: 52.32 MB
Proceed with installation? [Y/n] y
checking package integrity...
(10/10) checking for file conflicts [############################################################################################] 100%
error: failed to commit transaction (conflicting files)
cups: /etc/cups/printers.conf exists in filesystem
cups: /etc/cups/subscriptions.conf exists in filesystem
Errors occurred, no packages were upgraded.
Last edited by mibadt (2010-03-27 02:39:30)Well it sort of did, but I have to admit I had to check the forums before continuing...the messages I received were:
error: failed to commit transaction (conflicting files)
cups: /etc/cups/classes.conf exists in filesystem
cups: /etc/cups/printers.conf exists in filesystem
cups: /etc/cups/subscriptions.conf exists in filesystem -
Netinstall image installation problem
Hi, I'm new in MacOSX Server and trying to do image file with System Image Utility 10.6.2 - MacOS10.6 and additional packeges (MacOSXUpdCombo10.6.2, iWork'09, iLife'09) with "AddPackages and Post-Install Script". By making a image no problem but when I start the installation occurs the following problem.
MacOs10.6 install correct but other programs added in "AddPackages and Post-Install Script" is not installed, and in Macintosh HD is created a folder named Install.76443 with locked directories.
Where is the problem why the additional packages not installed.
My SIU configuration is :
Define Image Source: MacOSXInstallDVD
Add Packages and Post-Install Scripts
- MacOsx10.6.2. Update Combo
- iLife'09.pkg
- iWork'09.pkg
Create image
type: Netinstall
Install Volume: Macintosh HD
Save to: Documents
Image Name: Netinstall of Mac OS X Install DVD
Network Disk: Netinstall of Mac OS X Install DVD
Image Index: 1533
Description: Netinstall of Mac OS X Install DVD
i want to create one image for all packages and updates and install it from network to all computers in my office.
thanksI think this is covered in a different thread but, in short, the 10.6.2 update will fail to install on top of the 10.6 DVD. YMMV with the iLife & iWork packages as they may run pre-install scripts that will also cause them to fail.
Maybe you are looking for
-
MRS Push with SMP 3.0 and Service Manager 4.2 is not working
Hi All, I am working on SMP 3.0 SP 06 Service Manager 4.2 application . I have configured MRS Push which is not working . Service Order push is working fine. If anyone has configured MRS push with any one the Syclo mobile products ,Please share the s
-
The problem is with the new operating system and sending photo via email when used in my iPad. From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solv
-
dear all experts i have one issue as in a month there are 30 days & 26 days are working days now employee takes two unpaid leaves & two paid leaves(1PL&1CL) of the 4 wt in it 0008 ,two r to be calculted on the basis of 24 days & remaining two wagetyp
-
System : PIX 506E ver 6.3(5) PDM 3.0(4) XP SP3 Firefox 3.0.8 and IE 6 BOTH have the same result so it is not a browser setting. JRE 6 update 11 would log errors but open the PDM. Updating java uninstalls update 11 and installs update 13. This update
-
5.1 Surround Sound monitoring audio interface suggestions
I will be editing some live theatricals for Blue Ray, and want to use 5.1 Surround Sound tracks edited in Sound Track Pro. But I need an Audio Interface to be able to monitor the 6 channels of output in the editing, before I burn the Blu Rays. Does a