How to use image load gif of 「GIF87a」 by ByteArray ?
Hi all:
I want use image load gif file of 「GIF87a」 by ByteArray, but it not be displayed correctly on the screen, How can I do it , or How to conver 「GIF87a」 to 「GIF89a」 ?
private function onButtonClick():void {
fileRef.browse([new FileFilter("Images", "*.jpg;*.gif;*.png;*.swf")]);
fileRef.addEventListener(Event.SELECT, onFileSelected);
private function onFileSelected(e:Event):void {
fileRef.addEventListener(Event.COMPLETE, onFileLoaded);
fileRef.load();
private function onFileLoaded(e:Event):void {
var bytes:ByteArray = e.target.data;
imageLoader.source = bytes;
<mx:Image id="imageLoader" onclick="onButtonClick()">
Hi zhaojie198281,
I've made a small modification on your code and it works fine. Try the following code,
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="900" height="400">
<fx:Script>
<![CDATA[
private var fileRef:FileReference = new FileReference();
private function onButtonClick():void {
fileRef.browse([new FileFilter("Images", "*.jpg;*.gif;*.png;*.swf")]);
fileRef.addEventListener(Event.SELECT, onFileSelected);
private function onFileSelected(e:Event):void {
fileRef.addEventListener(Event.COMPLETE, onFileLoaded);
fileRef.load();
private function onFileLoaded(e:Event):void {
var bytes:ByteArray = e.target.data;
imageLoader.source = bytes;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:VerticalLayout paddingTop="10" paddingLeft="10"/>
</s:layout>
<s:Button label="Load!" click="onButtonClick()"/>
<mx:Image id="imageLoader"/>
</s:WindowedApplication>
Similar Messages
-
Hello OTN,
My application is devided into several ADFLibs, one of them is CommonUI. It includes common skin and it is imported into every application part.
There are some images which should be available in different parts, so I decided to put them in CommonUI.
After deploying adflibCommonUI adn refreshing Resource Palette, somehow I expected to see this image there, but it isn't.
Could someone, please, explain me, how to use images contained in imported ADFLib, for example, as imageLink icon?
Thanks.
ADF 11.1.2.1Hi,
images need to be saved in a specific file structure in the JAR file to be accessible. See:
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/86-images-from-jar-427953.pdf
Frank -
How to use image maps in ADF 11g
Can somebody point me to code snippet for using image maps in JSF Page.
I just want to use image maps in my application..but i don't know how to use image maps in ADF.
-DeeptiHi chris,
My DataBase script is given in below
CREATE TABLE XXSR.SR_HIERARCHY
FORM_ID NUMBER,
FORM_NAME VARCHAR2(30 BYTE),
PARENT_FORM_ID NUMBER,
FORM_LOCATION VARCHAR2(1000 BYTE),
IMAGE_FILE ORDSYS.ORDIMAGE
I want to store the image in database from front end using ADF 11g
-Deepti
Edited by: 913387 on Feb 24, 2012 5:36 AM -
How to use Sql Loader in Unix Environmant
Hi All,
Can anyone explain me please how to use sql Loader in unix environment.
Actually i have one control file i want to run that file in Unix how can i achive please explain me
Thank'sHi Kuljeet,
Thank you for your replay
I just put my control file into the Unix Environmant that's fime
and when i trying to entering the following cmd in Unix environment i am getting this error
sqlldr username/password@string control='unix_pathname'i am not sure about the path name my question is
1) Do i need to give the Local file Path Or Unix Path
This is the error in Sql Loader:
SQL*Loader: Release 10.2.0.4.0 - Production on Mon Sep 24 13:14:23 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (/bx167a/riskbatch/rdwdbat/sample_upl.upl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
Could you please correct me
Thank's -
Can any one tell me how to use Image Prompt
Hi
Can any one tell me how to use Image Prompt in Answers?
Thanks
RahmanHad a look at this already?
http://download.oracle.com/docs/cd/E12103_01/books/AnyUser/AboutPrompts.html
Cheers,
C. -
How to use image and text in same component
Hello
Do you know how to use image and text in same component in java ?
because i need this in my project ,which is chat application , to
put the received text and any image if it is need within the textthanks levi_h
JTextPane class extends JEditPane and allows you to embed
images or other components within the text managed by the component -
How to use Outline Load Utility with local encoding names of dimensions?
Hi,
I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
Target dimension name has been set in local encoding (cyrillic).
After execution my batch file I get error that unable to find specified load dimension "????" in target application.
Batch file has been created to start OutlineLoad in ANSI encoding:
cd C:\Hyperion\products\Planning\bin
OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
TIMEOUT 10
How to use Outline Load Utility with local encoding names of dimensions?Has somebody any idea about my question below ?
Regards,
Ed -
How to use an animated .GIF image as the texture in Cp4 ?
Hello all
I wish to create an animated banner and use it as the texture in Captivate 4.
As I know texture supports only image formats( JPEG, PNG, GIF,etc). So, I have created a small animation in Photoshop and saved in GIF format and used it as the texture. But when I preview the movie it is displayed as an image but not the animation.
Is there any solution for this problem?
Kind regards,
Kartik Pullela1. Instal this package: http://nugetmusthaves.com/Package/WpfAnimatedGif2. Use the code below:
<Window x:Class="WpfAnimatedGif.Demo.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:gif="http://wpfanimatedgif.codeplex.com"Title="MainWindow"Height="350"Width="525"><Grid><Image gif:ImageBehavior.AnimatedSource="Images/animated.gif"/></Grid>I found this on: http://wpfanimatedgif.codeplex.com/, and this is the useful solution because <MediaElement /> doesn't show the .gif image, and that's pretty strange. -
How to Use Image Processor for Multiple Sizes
I'm trying to use Image Processor to work on a folder of images and to create several sizes of .jpg's . I find an option to Save as JPEG in one size only. Is there any way to set up Image Processor to save JPEG to multiple sizes?
Thanks in advance for your help!!!Hi Mehtap,
Using the script will give you multiple selections.
This is how I did it and it works well. It just separated the values by semicolon ";" .
TEXT_1.setText(DS_1.getFilterText("0CUSTOMER"));
When selected only one value:
When selected more than one value: -
How to use page loading.htm of standard BSP htmlb_samples .
Hi All,
I am calling an RFC in the OnCreate event of one BSP page , so it takes a bit longer to load and a blank page is shown till the layout is executed.
I would like like to show Loading.... effect page , instead of the blank page , till the main page layout is executed.
I read in a [thread|Loading Message] that we can use the loading.htm page of htmlb_samples application for this.
I tried as described in this thread , but after the loading page the application dosent navigates to the main page.
So how to navigate from loading page to Main page of application?
Any other ideas for showing Loading effect page will also help.
Thanks,
Anubhav.Hi anubhav
From 1st veiw(Initial page) navigate it to the intermediate(Loading.htm) page then from this page navigate it to the second view(Main.htm).
In the intermeidate page you can use javascript and navigate it to the second page(Main.htm).
In a function of javascript put the code of re-directing Url and call this function in the onload event of the body tag in html.
window.location("url").
What happens is when the loading page gets called then, it will inturn call the main.htm page. So till the main.htm page comes the loading icon will be displayed.
Thanks
Vijay.M -
I need to use some pics in an application I'm developing, but I don't know how to.
Can you name some libraries that I can use to display GIF files?Nice!
it helps the first part...
now i need to know how to display it and possibly move it...
I'm developing a game, and I'm working on the numbers and the GDD so hard I can't really devote time to seeking the precise functions used for this... I know it's absolutely lame that I'm not devoting time to the graphics part, but I'm really pressured 'cause it's a school project for the end of the month... :S
anyways, I only need the displaying and moving, or I'll have to work out some ASCII art and learn to move the text around the screen. : /
Thanks! -
Applet : How to use Images in Jar file
I want to put all images into a jar file to improve speed of loading.
But how to invoke images from Jar file?
Thanks.@Op. It's very important for a developer to know how to find information, and that skill usually comes with experience. Google is one of the best ways to find information and solutions to the most common problems.
Kaj -
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."? -
How to use SQL*loader in oracle9i???
Hi,
I have installed oracle9i, and want to use sql*loader to load text data into table.
However, I can not find a tool called SQL*loader anywhere on the manu.
It will be appreciated if some experts can give me an advice where I can find it, and how to use it to load text data.
Thanks.
ChuckWhen I go to tahiti.oracle.com and search on "external table", I get dozens of hits that explain how to create an external table and give numerous examples. If you have specific questions, I'd be happy to try to go into more detail. A generic SQL*Loader guide, however, would be well bayond the scope of this forum.
http://otn.oracle.com/pls/db92/db92.drilldown?remark=&word=external+table&book=&preference=
Justin -
How to use Image field in SQL-7 for curvs
I sampling data from a NI-card. There will be a lot of data so I thought I should use Image-field in SQL-7 to save the hole curve. How do you do that?
I would suggest looking into the Database Connectivity Toolset. It has complete SQL functionality and uses ADO to connect to many types of databases. I have it and it comes with example programs which demonstrate how to write to and read from databases using SQL.
J.R. Allen
Maybe you are looking for
-
How do I stop Itunes from changing my library location
Is there just no answer to what should be a simple setting change?? No matter what I do, Itunes insists on changing my library location the instant there's any problem talking to my network share where all of my music is. This is absolutely ridiculou
-
Unwanted file extension inserted into file format list!
I accidentally saved a .wav file with the .ses extension. Now I've got the .ses extension included with .wav and .bwf extensions under the Save As Type box in my Save and Save As dialog windows. Any advice on removing it?
-
Can I sync iPhone with movies on another Mac?
My main computer is a PB but I do not have enough space to store movies on this machine. iTunes on this machine has all my music but my movies are on another Mac (G5) on my network. Is it possible to get iTunes on my PB to see movies on my G5 so that
-
IMovie 9 keep crashing 10.9.2
I have recently upgraded from 10.5.8 to 10.9.2. I did a clean install of 10.6.0 and was able to upgrade to 10.9.2 using software update. Please find below the log: Process: iMovie [232] Path: /Applications/iMovie.app/Contents/MacOS
-
How to do a major GC without restarting the engine?
With WAS 6.4, is there any way to do a major Garbage Collection. Force one. I know that one happens after the generations fill up but I want one to happen in a batch file that I can let loose in the middle of the night. Is there one that can be se