Urgent Image PNG Forte
This message is really urgent. I'm deploying an application with Forte and I'd just like to insert an image as simple as I can. But the error message is :
java.io.IOException
at javax.microedition.lcdui.ImmutableImage.<init>(+30)
at javax.microedition.lcdui.Image.createImage(+8)
at CanPack.CanSuiteMIDlet.<init>(+64)
at java.lang.Class.runCustomCode(+0)
at com.sun.midp.midletsuite.MIDletSuiteImpl.loadInitialMIDlet(+21)
at com.sun.midp.dev.DevMIDletSuiteImpl.loadInitialMIDlet(+9)
at com.sun.midp.midlet.Scheduler.schedule(+31)
at com.sun.midp.dev.DevMIDletSuiteImpl.schedule(+7)
at com.sun.midp.Main.runLocalClass(+20)
at com.sun.midp.Main.main(+68)
Execution completed successfully
And my source code is :
try{
// Read the image:
Image imCan=Image.createImage("/newuser.png");
//System.out.println("cool");
/*fmMain.append(new ImageItem(null, imCan,
ImageItem.LAYOUT_NEWLINE_BEFORE,
null));*/
// View the layout directives
/*System.out.println("Layout Directives" +
((ImageItem)fmMain.get(1)).getLayout());
display.setCurrent(fmMain);*/
catch(java.lang.NullPointerException exc){
exc.printStackTrace();
catch(java.io.IOException e){
e.printStackTrace();
//System.out.println(e.printStackTrace());
that I put in the constructor. I verified all my path en classpath but no result and I don't why?
If somebody could help me ...
Thanks
Thanks for your answer but I found the solution. In fact my image is in a package (the same repertory as sources) but I had to write Pack/...png but I don't know why. Maybe it will help someone else.
Similar Messages
-
Most images in wikipedia are not visible. Icons are ok.
Looking at page info, the greyed-out ones are of type Background in the list and type PNG Image in the text below them.
Example:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAALCAMAAABxsOwqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGBQTFRF////R2uZMmGd5rp2boqvMFyS9unUTXWr5KQ/N2mn/Pr42Jg14Zstl6a80K93XXiVooVQ57VnpLnW4a1a36ZMr7Cwgpm5PXGw78mO+O/g1t7n5Orxk6zMvMne7/Dw6+zt5K6gdAAAAAF0Uk5TAEDm2GYAAABdSURBVHheHcpFAgMxEANBDZhhmQP//2Uc90V1EICrLuti0YqnyORrbLSrWPHJ/ukn8bkzbrnVD/MwpjQOb+B2hyvbQe7BTiG8ZmYqUOLglA0rCrcJxpiCz049/f4A9ZID96SyhDEAAAAASUVORK5CYII=
versions 3.5 3.6 and 4.0.1 Debian squeezei was able to get it to work from a suggestion in another thread: if you write a JSFL that goes through all your bitmaps and makes sure they do not uset he default compression of the document, but instead use custom compression (it can match the default however). this worked for me
-
Can't load large image (png)
I have a sandbox web page with large image (png file 26000x13000, 14MB packed/330MB unpacked). I can open it in IE but firefox display page without image. I have 1,2GB of free RAM, how can I adjust settings to make allow firefox display the image? Currently there is no difference if I use unpacked BMP, it doesn't work as well. I would prefer to stay with PNG since it's only 14MB on disk.
Is there an error message?
We've been able to load more than 100MB files.
Try setting SQLNET.EXPIRE_TIMEOUT=0 in the sqlnet.ora file
Fenella -
Okay, here's my three cents worth,
Are you using Forte "Keep Alive" settings? If yes, you may simply have a
time-out.
While a partition is waiting for a reply from a database, it blocks and
won't respond
to anything, including pings to check if it's still alive. So, if the query
takes longer to
complete than the time-out period of the communication manager, then you
will
loose the connection to the partition.
-----Original Message-----
From: Aberdour George [SMTP:george.aberdourdet.nsw.edu.au]
Sent: Sunday, February 13, 2000 11:39 AM
To: 'Babu Raj'; kamranaminyahoo.com
Subject: RE: (forte-users) Hi All....very urgent...Forte doesn't
handle La rge array properly
Hi,
This sounds almost identical to a problem we have experienced.
If it is the same problem it is because you have compiled a back-end
load-balanced partition, but NOT the router that manages it.
With such a configuration, attempts to send greater than a few thousand
rows
will fail - and it doesn't seem to matter what you set -fm to.
You don't see the problem running distributed from your workspace because
everything is interpreted.
So just compile the router and try again.
Hope this helps.
George Aberdour
(George.Aberdourdet.nsw.edu.au)
-----Original Message-----
From: Babu Raj [mailto:ibcsmartboyyahoo.com]
Sent: Saturday, 12 February 2000 7:24
To: kamranaminyahoo.com
Subject: (forte-users) Hi All....very urgent...Forte doesn't handle
Large array properly
Hi All,
Have anyone experienced problem of retrieving
more than 1500 records from the database table, into
the object.
I use dynamic SQL statement, and populating Array
object from the DBDataSet. When it runs from my
workspace distributed, it works fine. But, when I make
deployment, and install on the test bed, I face
Network connection failure from the client machine. It
looks like, server read the data from the Database,
and while packaging it, to send it across to the
client, server seems to run out ouf memory or couldn't
maintain the connection with the client. I tried to
set -fm flag on that partition, and separately setting
FORTE_GC_SPECIAL too, but still no luck.
we have increased, the rollback segment size on
Oracle too, but still no luck.
Appreciate, your suggestions, if you can,
Thank you,
Babu
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.comOkay, here's my three cents worth,
Are you using Forte "Keep Alive" settings? If yes, you may simply have a
time-out.
While a partition is waiting for a reply from a database, it blocks and
won't respond
to anything, including pings to check if it's still alive. So, if the query
takes longer to
complete than the time-out period of the communication manager, then you
will
loose the connection to the partition.
-----Original Message-----
From: Aberdour George [SMTP:george.aberdourdet.nsw.edu.au]
Sent: Sunday, February 13, 2000 11:39 AM
To: 'Babu Raj'; kamranaminyahoo.com
Subject: RE: (forte-users) Hi All....very urgent...Forte doesn't
handle La rge array properly
Hi,
This sounds almost identical to a problem we have experienced.
If it is the same problem it is because you have compiled a back-end
load-balanced partition, but NOT the router that manages it.
With such a configuration, attempts to send greater than a few thousand
rows
will fail - and it doesn't seem to matter what you set -fm to.
You don't see the problem running distributed from your workspace because
everything is interpreted.
So just compile the router and try again.
Hope this helps.
George Aberdour
(George.Aberdourdet.nsw.edu.au)
-----Original Message-----
From: Babu Raj [mailto:ibcsmartboyyahoo.com]
Sent: Saturday, 12 February 2000 7:24
To: kamranaminyahoo.com
Subject: (forte-users) Hi All....very urgent...Forte doesn't handle
Large array properly
Hi All,
Have anyone experienced problem of retrieving
more than 1500 records from the database table, into
the object.
I use dynamic SQL statement, and populating Array
object from the DBDataSet. When it runs from my
workspace distributed, it works fine. But, when I make
deployment, and install on the test bed, I face
Network connection failure from the client machine. It
looks like, server read the data from the Database,
and while packaging it, to send it across to the
client, server seems to run out ouf memory or couldn't
maintain the connection with the client. I tried to
set -fm flag on that partition, and separately setting
FORTE_GC_SPECIAL too, but still no luck.
we have increased, the rollback segment size on
Oracle too, but still no luck.
Appreciate, your suggestions, if you can,
Thank you,
Babu
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
is there any way to remove or reduce banding that I am getting in a layout I've done that contains a gradient? I am exporting raster images (png or tiff) and there is a noticeable stepping of tonalities, rather than a smooth shift
thanksIn an 8bit format like PNG you only have 1024 unique levels...
1024 is 10 bits. 8 bits is 256.
But PNG is an RGB 8-bit per channel format. That yields 256^3 (i.e.; 24-bit or 16.7 million) potential "levels" (colors).
...banding that I am getting in a layout...
Banding that you are getting where?
What are the specific color values involved?
What is the final use?
What will be the distance across the gradient in its final use?
You have to consider whether the banding is actually in the raster image, or if it is merely an artifact of where/how the image is being viewed.
Banding is not a simple matter of image color depth. Banding is a device-dependent phenomena. The banding you see on your monitor is not the same banding that will be seen on your grayscale laser printer; is not the same banding that will be seen on your CMYK inkjet printer; is not the same banding that will be seen on press. Banding in print is generally more a function of levels of gray (per separation) of the imaging device, and can vary depending on the halftone ruling (assuming conventional AM screening).
Depending on the answers to the questions above, you may very well be fretting over nothing.
JET -
When i load an image to an applet using Forte for Java CE 4 and run it ,the applet crashes giving an error message saying access denied to the images.How can i add images using Forte and make it run properly because i want to program games
Unless it is signed, your applet does indeed need to follow the sandbox security model. If you wish to use images, you can download them from the same website the applet came from (this is possible in the sandbox) or you can also add your image to your JAR file and retrieve it using:
applet.getImage(applet.getCodeBase());or
applet.getImage(applet.getDocumentBase());Security restrictions are described here:
http://java.sun.com/docs/books/tutorial/applet/practical/security.html
See here for more info on loadingimages in applets:
http://java.sun.com/docs/books/tutorial/uiswing/painting/loadingImages.html
Also, if you are looking fo a more up-to-date and free development tool, you may wish to look at http://netbeans.org.
hth,
-Alexis -
Saving and loading images (png) on the iPhone / iPad locally
Hi,
you might find this helpful..
Just tested how to save and load images, png in this case, locally on the i-Devices.
In addition with a SharedObject it could be used as an image cache.
Make sure you have the adobe.images.PNG encoder
https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
Not really tested, no error handling, just as a start.
Let me know, what you think...
Aaaaah and if somebody has any clue about this:
http://forums.adobe.com/thread/793584?tstart=0
would be great
Cheers Peter
import flash.display.Bitmap
import flash.display.BitmapData
import flash.display.Loader
import flash.display.LoaderInfo
import flash.events.*
import flash.filesystem.File
import flash.filesystem.FileMode
import flash.filesystem.FileStream
import flash.utils.ByteArray;
import com.adobe.images.PNGEncoder;
private function savePic(){
var bmp = // Your Bitmap to save
savePicToFile(bmp, "test.png")
private function loadPic(){
readPicFromFile("test.png")
private function savePicToFile(bmp:Bitmap, fname:String){
var ba:ByteArray = PNGEncoder.encode(bmp.bitmapData);
var imagefile:File = File.applicationStorageDirectory;
imagefile = imagefile.resolvePath(fname);
var fileStream = new FileStream();
fileStream.open(imagefile, FileMode.WRITE);
fileStream.writeBytes(ba);
trace("saved imagefile:"+imagefile.url)
private function readPicFromFile(fname:String){
var imagefile:File = File.applicationStorageDirectory;
imagefile = imagefile.resolvePath(fname);
trace("read imagefile:"+imagefile.url)
var ba:ByteArray = new ByteArray();
var fileStream = new FileStream();
fileStream.open(imagefile, FileMode.READ);
fileStream.readBytes(ba);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPicRead)
loader.loadBytes(ba);
private function onPicRead(e:Event){
trace("onPicRead")
var bmp:Bitmap = Bitmap(e.target.content)
// Do something with itAre the movies transferred to your iPhone via the iTunes sync/transfer process but don't play on your iPhone?
Copied from this link.
http://www.apple.com/iphone/specs.html
Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
What are you using for the conversion? Does whatever you are using for the conversion include an iPod or iPhone compatible setting for the conversion?
iTunes includes a create iPod or iPhone version for a video in your iTunes library. Select the video and at the menu bar, go to Advanced and select Create iPod or iPhone version. This will duplicate the video in your iTunes library. Select this version for transfer to your iPhone to see if this makes any difference. -
How to disable Data URI (data:image/png;base64 URI)
Hi all,
I'm not sure when it started, but when I want to view an image's URI in my Safari 5.0.4, it gives me the "data:image/png;base64" URI, instead of the usual "http://example.com/image.jpg". Is there a way to disable this? I need to check URI's of images regularly and this is quite a pain.
Thanks for your help!
Keywords: Data URI Scheme, image url, image uri, image address, data:imageHi Andy, thank you, I had Deanimator 0.3.0 installed, and once I disabled it and restarted Safari, the problem went away.
Guess I'll have to choose between being able to view "normal" uri's or not letting animated gifs slow my Safari to death. LOL.
Thanks again! -
Afficher une image png sur face avant
Bonjour,
Je cherche à afficher une image .png sur la face avant de mon vi. J'ai bien trouvé plusieurs exemples sur les forums mais tous utilisent des containers.
J'aimerais juste afficher l'image en elle même sans avoir de cadre autour... (j'ai rajouté l'icone verte sur le print screen en faisant un copier-coller mais il n'est pas possible de la rendre invisible).
Le but final serait d'afficher telle ou de rendre invisible cette image.
Cela est-il possible?
J'utilise LB2010 ou 2009...
Merci d'avance
Résolu !
Accéder à la solution.
Pièces jointes :
Sans titre.JPG 28 KBBonjour,
Tu peux aussi utiliser un picture ring de la palette classic, et rendre le cadre transparent. Tu importes ton image en laissant un item vide. Tu n'as qu'à changer la valeur pour afficher ou non l'image (ou utiliser un noeud de propriété visible fonctionne aussi).
Cordialement,
Simon D.
CLA | Certified LabVIEW Architect
CTA | Certified TestStand Architect -
Probleme pour lire une image png et transparen​ce
Bonjour,
mon objectif est de régler la transparence d'une image png, pour cela j'ai trouvé le vi "Create a mask by Alpha" mais le problème vient de la lecture de l'image. Je lis une image .png en utilisant le vi "read pgn" file puis "Draw flattened pixmap" et je n'obtient pas l'image en entier. Vous pouvez le voir sur l'image (j'ai fait un impr écran de la face avant), il manque le bas de l'image par rapport à l'originale (image simplement importée depuis le menu edit/import picture to clipboard).
En cherchant sur le forum j'ai obtenu des Vi (sur cette discussion : http://forums.ni.com/t5/LabVIEW/how-to-get-alpha-images-on-picture-box/m-p/1138513#M501588) qui me permettent de bien lire les image .png. En les utilisant l'image est entière (c'est celle marquée with alpha) mais par contre, je ne peux plus utiliser le vi "Create a mask by Alpha" car le cluster qui contient les data image ne sont pas les même.
Donc j'aimerais savoir pourquoi l'image ne sort pas en entier lorsque j'utilise read png file d'une part.
D'autres part, je voudrais savoir que faudrait-il modifier sur le vi "Create Mask by Alpha" pour que je puisse régler la transparence de mon image tout en utilisant les vi trouvé sur le forum?
Je ne sais plus quoi faire...si je ne suis pas claire il y a mon vi en pièce jointe.
merci
Cordialement
Mélanie
Résolu !
Accéder à la solution.
Pièces jointes :
Mon_vi_transparence.JPG 121 KB
Vi transparence.vi 19 KBBonjour,
Voici un Vi permettant de gerer la transparence entre deux images.
Cordialement,
Nicolas M.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Journées Techniques LabVIEW 2012 : du 27 septembre au 22 novembre
2 sessions en parallèle : Débuter a...
Pièces jointes :
GestionTransparence.vi 22 KB -
Problem: List images / Palm / Forte
Are there any issues with creating JAR files that contain PNG files with Forte?
I cannot seem to get images to display in a List on a Palm. With the Forte debugger, I am able to see that the Image is found. No exceptions are throw when I try to get a handle on the PNG.
When it comes to displaying the image, the default list icon is displayed instead.
My image is a black and white, 10x10 PNG image. It is 1kb in size.
Has anyone experienced this problem? If so, how did you solve it?[kevinsikora],
Not that I know of. With the MIDP 1.0 for PalmOS, there is a restriction of the maximum image file size of 64 kbytes for a PNG image file.
Can you check the Preferences settings on the "Java HQ" AMS application? There is a setting for the color for the MIDP for Palm OS 1.0 environment, that should state black and white since your PNG image is black and white.
Can I assume that you are using the Image.createImage() method in your code and that the PNG file is placed correctly in the JAR file?
HTH.
Rgds,
Allen Lai
Developer Technical Support
Sun Microsystems
http://access1.sun.com -
Importing an Image (png) into a designated (Coordinated) location.
Greetings,
I'm currently developing a TicTacToe application. I am using an array to store the points (Coordinates) of where I would like an image to be input when I call a paint method. Eg An O in position 1 would use the coordinates associated with the grid element (Stored in the array) for 1 to paint the image:
1|2|3 O|2|3
4|5|6 --> 4|5|6
7|8|9 7|8|9
I have all of the x1,x2,y1,y2 coordinates, and this is a two part question...
1. Will one of the createImage methods create an image using an existing png but resize it to fit between the desired coordinates?
2. And if not, could you suggest an alternative method to accomplish this?
Regards,
RakeOne.1. Will one of the createImage methods create an
image using an existing png but resize it to fit
between the desired coordinates?I don't know about this.
2. And if not, could you suggest an alternative
method to accomplish this?I would do this by manually drawing X's and O's on the canvas,
since you already have the coordinates, this shouldn't be hard.
Or by having three images, one for X, one for O, and one empty.
Every image would have the background color you wish and a
border, which will become the grid when the images are next to
each other. First fill the canvas with nine empty images, and
when X or O is inserted in some location, replace that image with
corresponding X/O image.
kari-matti -
Adobe Assets: PSD export to image(PNG, JPG) crashes webpage
Firstly it is great that Adobe Assets was released so that it would be possible to view PSD files.
Have a PSD file opened in Adobe Assets on Google Chrome(Linux). I am trying to use the option of exporting the PSD to an image format, but the Actions -> Download -> PNG/JPG crashes the webpage.
Any workaround other than using Adobe Photoshop? I guess I can ask the creator of the PSD to export it.I set up Ubuntu 14.04.1 LTS using the iso image from here Ubuntu 14.04.1 LTS (Trusty Tahr). Using either Chrome or Firefox I am able to download both a png and jpg image of a psd file from the private file one-up page.
First steps to try are rebooting the machine, and clearing all cache / cookies from the browser.
Next thing to try is to choose Actions > Download and from the Chrome Dev Tools for the download you should see:
Request Method: GET
Status Code: 200 OK
Request URL: https://scproxy-prod.adobecc.com/api?X-Location=https%3A%2F%2Fcc-us1-prod.adobesc.com%2Fap i%2Fv1%2Fassets%2F1d9b9bbe-5868-4540-a46e-e305b9e23ee7%2Frenditions%2Fjpg%2Ffull&Authoriza tion=Bearer%20[redacted]A&download=true&filename=test.jpg -
Displaying Image (*png) in MIDlet
I have encountered the following error when i try to display a *png file using ImageItem.
IOException
try
Image image = Image.createImage("/BizAuto.png");
mMainForm.append(new ImageItem(null, image, ImageItem.LAYOUT_CENTER, null));
catch (java.io.IOException ioe) {
System.out.println(ioe);
System.out.println("Unable to locate or read .png file");
It can't read my image file, and would give the IOException.
Was wondering is there a specify directory which i have to put my image file in?
Been looking at the code, but still can't find what's wrong.Sorry ... as i really need help ... Could somebody help me?
Thanks alot ... -
Iphone image - png cannot open in CS3
I have a few images and they are from an iphone and in the .png format. I tried to open them in my registered cs3 photoshop but an error comes up (which is ridiculous by the way)
Anyone with a solution?Did you use the camera app to take the photos or an third-party app. I just ran into the same issue this weekend. When I was using Facebook, I took some photos within the app and they showed up as .png. When I used Apple's camera app, they were .jpgs. Curiouser and Curiouser.
Maybe you are looking for
-
Problame connecting iphone to pc and charging
hello, I have been having a hard time connecting my iphone to the pc or the wall ac plug. when I plug it in, some of the time the icon changes and the device charges normaly, some of the times i get a worning that the iphone cannot be charged when "t
-
My IPhone works with both the charging USB cable as well as the wall socket and docking station. Additionally, my IPod used to charge using both the wall socket plug in and the docking station. My IPod will stay play music when plugged into the doc
-
Interactive Adobe form is not interactive in ABAP WD
Hello, I've created an Adobe form with interactive UI elements (text input fields). When simulating these in the Adobe designer, they are all working fine. However, when executing the form embedded in an ABAP WD, the input fields are not active. When
-
when i try to play a video from my library... or watch a movie or a podcast... itunes stops working!! help.... and this happened right after i updated itunes!
-
Any suggestions for replacing Preview?
Preview on Lion has always been flaky. I found a work around for it crashing after images were deleted, (ctrl+click the thumbnail and send to trash rather than delete from the folder). But this week Preview has decided that I don't have permission to