How to load a jpeg image in to a database from a flex2 app

Hi,
how ouwld I browse the local fie system, select a jpeg image
and then save
it to a database using flex2?
Anybody know of some sample code that I can look at?
Thamls

Hi Thamis,
Take a look at the flash.net.FileReference class here:
http://livedocs.macromedia.com/flex/2/langref/index.html
This is the built in Flash support for file upload. You'd
handle the upload with a servlet/jsp/etc. server-side component to
save it to disk or as binary data in a database.
Best,
Seth

Similar Messages

  • How to load a boot image to cisco aironet 1140 series after missing boot image

    Hi all,
    I need a solution for this. When i switch my cisco aironet 1140 , it s blinking with red light .and gives a message "no boot image to load".
    When i tried next time, by pressing escape it shows this message that i have mentioned below.
    ap:
    ap:
    using  eeprom values
    WRDTR,CLKTR: 0x83000800 0x40000000
    RQDC ,RFDC : 0x80000035 0x00000208
    using ÿÿÿÿ ddr static values from serial eeprom
    ddr init done
    Running Normal Memtest...
    Passed.
    IOS Bootloader - Starting system.
    FLASH CHIP:  Numonyx P33
    Checking for Over Erased blocks
    Xmodem file system is available.
    DDR values used from system serial eeprom.
    WRDTR,CLKTR: 0x83000800, 0x40000000
    RQDC, RFDC : 0x80000035, 0x00000208
    PCIE0: link is up.
    PCIE0: VC0 is active
    PCIE1: link is NOT up.
    PCIE1 port 1 not initialized
    PCIEx: initialization done
    flashfs[0]: 1 files, 1 directories
    flashfs[0]: 0 orphaned files, 0 orphaned directories
    flashfs[0]: Total bytes: 32385024
    flashfs[0]: Bytes used: 1536
    flashfs[0]: Bytes available: 32383488
    flashfs[0]: flashfs fsck took 16 seconds.
    Reading cookie from system serial eeprom...Done
    Base Ethernet MAC address: 28:94:0f:d6:c8:62
    Ethernet speed is 100 Mb - FULL duplex
    The system is unable to boot automatically because there
    are no bootable files.
    C1140 Boot Loader (C1140-BOOT-M) Version 12.4(23c)JA3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Compiled Tue 18-Oct-11 14:51 by prod_rel_team
    ap:
    So , now my question is how to load the boot image ? From where will we get this ? OR
    I m also having another Cisco aironet 1140 , Can i get bootimage from that . Kindly let me know the solution from genius ?

    Take a look at this link as it should have the info you need
    https://supportforums.cisco.com/docs/DOC-14636
    Sent from Cisco Technical Support iPhone App

  • How to get a jpeg image to a movie with best possible quality

    I've got a jpeg image from my 2 megapixel digital camera and I'm playing around with converting it to a movie. Yes, its a one image movie.
    +QuickTime Pro+ does a superb job when I choose H.264, 1024 kb/s, but I can't get iMovie 5.0.2 to give me the same quality. This is what I have done:
    1. Create a new movie as type MPEG-4.
    2. Imported the jpeg image and adjust the time from 5 seconds to about 2 seconds.
    3. Select Share, choose H.264, 1024 kb/s from the relevant option and after the movie making happens, the quality is obviously inferior to that from +QT Pro+.
    *QUES 1*: Why is the quality inferior?
    I have been to iMovie help and noticed this comment:
    "When you import clips in a format different from your project, they are converted to the video format of your movie."
    *QUES 2*: Is this why my jpeg image is losing quality? Is iMovie converting it to something else?
    Further, when the jpeg image is first imported, it is assigned a clip time of 5 seconds. When I move one of the sliders to reduce the time to just a few seconds, I notice that a black band appears at the top of the image in the iMovie window and as I make the time smaller, the image zooms in and the black band becomes wider. Letterboxing at the top seems to be occuring. This I can't fathom.
    *QUES 3*: Why does iMovie zoom in when I adjust time?
    Any comments most appreciated, especially those that tell me if iMovie can make a movie from jpeg images with the same quality as QT Pro -- and how to do that.

    Re the quality -- I think I have answered this one myself. Correct me if I'm wrong, but it seems to me that when I select a video option (DV, HD 1080 and so on), iMovie sets up a frame size to suit, and the frame size that iMovie sets up for MPEG-4 happens to be 640 x 480, thus the poor quality of my jpegs when I selected that option. The poor quality had nothing to do with the MPEG-4 format.
    Now the interesting things is, MPEG-4 is not limited to 640 x 480. It can be any size. So my question is:
    Ques: Can I set up a movie within iMovie that is any size I want? QT Pro gave better results because it allows any size movie at all, and thus adjusted the movie size to my jpeg size (1800 x 1200 pixels) when I imported an image from my digital camera.
    As it stands, not even the highest quality option in +iMovie 5.0.2+ (HD 1080) can handle the images from my piddly-little 2 megapixel camera.
    Message was edited by: Guy Burns

  • On CS5, how can I recover jpeg images that were Batch Renamed prior to removal from my flashcard?

    On CS5, how can you recover JPEG images that were accidentally Batch Renamed prior to removal from a flash card? Is it a total lose or can they be saved somehow?

    If they were renamed on the flash card that is a poor practice.  If renamed in Bridge the old names can be recovered it you have checked "preserve original name in XMP".  If not you are out of luck.  But you still have the images correct?

  • I've transferred photos to my ipod classic from my laptop. But how can I transfer JPEG images to ipod?

    I've transferred photos to my ipod classic from my laptop. But how can I transfer JPEG images to ipod?

    Hello, Blondet787. 
    JPEG photos are compatible with your device.  As long as these images are in the same folder as your pictures, then they should sync.  Below, I have included a couple articles that show you how to sync this data to your iPod.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    The article below is a little more detailed and designed more as a storage solution for media on your iPod Classic. 
    Putting iPod into Disk Mode
    http://support.apple.com/kb/ht1363
    Cheers,
    Jason H.

  • How to repair this?  Dyld Error Message:   Library not loaded: @rpath/MAAudioUnitSupport.framework/Versions/A/MAAudioUnitSupport   Referenced from: /Applications/GarageBand.app/Contents/MacOS/GarageBand   Reason: image not found

    how do i repair this?
    Dyld Error Message:
      Library not loaded: @rpath/MAAudioUnitSupport.framework/Versions/A/MAAudioUnitSupport
      Referenced from: /Applications/GarageBand.app/Contents/MacOS/GarageBand
      Reason: image not found

    I just tryed it and this what i get now,
    Thread 0:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib            0x933efb7a __sem_wait_nocancel + 10
    1   com.celemony.MelodyneEssentialRewireDevice    0x0c9211b4 GNCondition::waitForSignal() + 32
    2   com.celemony.MelodyneEssentialRewireDevice    0x0c920d4f GNMessagePort::registerMessagePortWithName(GNString*, GNData* (*)(GNMessagePort*, GNData*), int, int, GNDictionary*) + 315
    3   com.celemony.MelodyneEssentialRewireDevice    0x0c8c2dbe GNReWire2AudioDeviceHost::create() + 172
    4   com.celemony.MelodyneEssentialRewireDevice    0x0c8c0f3f RWDEFOpenDevice + 89
    5   se.propellerheads.rewire.library    0x0c84584e 0xc841000 + 18510
    6   se.propellerheads.rewire.library    0x0c8459b8 0xc841000 + 18872
    7   se.propellerheads.rewire.library    0x0c8488e0 RWPUnregisterDeviceImp + 5438
    8   se.propellerheads.rewire.library    0x0c846689 RWM2OpenDeviceImp + 57
    9   com.apple.music.apps.MAAudioEngine    0x02b1ac13 ReWireUpdateMIDIInfos() + 3427
    10  com.apple.music.apps.MAAudioEngine    0x02b02e9f MD::Init(int, bool) + 2367
    11  com.apple.music.apps.MAAudioEngine    0x02b0c852 GetCurrentCoreAudioDeviceNameFromUserDefaults(signed char) + 10514
    12  com.apple.music.apps.Logic        0x00a7d59e CSong::GetAuConfPoint(TGInstID, SAUCONF**) const + 384926
    13  com.apple.music.apps.Logic        0x00a7f5ac CSong::GetAuConfPoint(TGInstID, SAUCONF**) const + 393132
    14  com.apple.music.apps.Logic        0x00cb7530 TaskCompleted() + 366032
    15  com.apple.music.apps.Logic        0x009fe61b LgApplicationInit + 379
    16  com.apple.garageband              0x00067621 0x1000 + 419361
    17  com.apple.garageband              0x000667c2 0x1000 + 415682
    18  com.apple.Foundation              0x9b887df1 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
    19  com.apple.CoreFoundation          0x95311903 ___CFXNotificationPost_block_invoke_1 + 275
    20  com.apple.CoreFoundation          0x952dc688 _CFXNotificationPost + 2776
    21  com.apple.Foundation              0x9b872fde -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
    22  com.apple.Foundation              0x9b888272 -[NSNotificationCenter postNotificationName:object:] + 55
    23  com.apple.AppKit                  0x98ab9df0 -[NSApplication finishLaunching] + 554
    24  com.apple.AppKit                  0x98ab97c0 -[NSApplication run] + 142
    25  com.apple.AppKit                  0x98d4aac5 NSApplicationMain + 1054
    26  com.apple.garageband              0x0019cae0 0x1000 + 1686240
    27  com.apple.garageband              0x0000311a 0x1000 + 8474

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • How to get the jpeg image contained in a URL

    I have a jpeg image which is contained in a URL
    http://california.biocars.org/viewFrames2?seqDir=/data/pub&
    fFileName=test
    How can I get the image only? The file is not in jpeg format
    but in some other format which adds two lines in front of a
    jpeg file. This jpeg file is what I want. But how to get it?
    Note that california.biocars.org/ is inside a firewall and can not
    be viewed from outside.
    Thanks.

    right-click and select Save As... hahahaha

  • How to load the Employee Images through Script

    Dear All,
    How to load Employee Images into HRMS module through script, Pls provide scripts any body having..
    Thank in advance,
    Hanimi
    Edited by: Hanimi on Jun 7, 2011 10:12 AM

    Hi Hussain,
    Following ctl file is working fine for loading images, But problem is at a time it is loading only 64 rows, pls let me know what i have change in my ctl file for loading all data at a time..
    load data
    infile '/usr/tmp/Images_Data.dat'
    INTO TABLE PER_IMAGES
    append
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS(
    parent_id,
    table_name constant "PER_PEOPLE_F",
    ext_fname FILLER CHAR(80),
    "IMAGE" LOBFILE(ext_fname) TERMINATED BY EOF,i
    mage_id "PER_IMAGES_S.nextval"
    Thanks,
    Hanimi..

  • How to import a jpeg image into premier elements 12?

    how do  i import a jpeg image into premier elements 12?

    chuckx
    Just for background information, what computer operating system is your Premiere Elements 12 running on?
    The generalized answer is Add Media/Files and Folders/Projects Assets from where you drag the photo to the Expert view Timeline.
    But all that can generate a mountain of questions about the photo and the project into which it will be going
    a. what are the pixel dimensions of the photo - will or will I not have to resize or crop/resize the photo for the project
    b. is the photo going into a project that will consist of photos and videos
    c. if video inclusion, that leads to questions about the properties of the video so that you can set the project preset to match those
    d. that leads to questions on the best size to have your photo before you import them into this project.
    So, one simple question generates a lot of side questions.
    Please let us know how we might help to sort out the details for your Premiere Elements workflow and its source media.
    Thank you.
    ATr

  • How to load use an image library in the portal pages

    Hi,
    How to load an image library in the portal ? Do I need to load images in an Apache directory and access them via URLs, or do I need to upload images to a specific portal page, and access these images via specific URL ?
    Thanks for your help,
    Jean-Christophe

    Another easy method is to create a dedicated page in Portal and use it for the storage of images, flash objects.
    Load the images as item type FILE and use the 'direct access' method (HOST:PORT/pls/<DAD>/docs/PAGE/<PG NAME>/<PAGE_NAME>/IMAGE.GIF)to access the file from a URL command.
    This way all your images are protected in the database, easy to add and find (via search or by adding descriptions, categories etc) via role based security and in theory should be quicker to access (via the URL) due to the indexing capabilities of the database.
    Place the images in a location that is not going to cause a page navigation issue such as in its own Page Group or as sibling page to your top level parent page etc.
    Hope this helps.
    John

  • How to load a background Image on a JDialog object

    Hi All, Actually i am new to java programing and i am stuck in this problem. I am developing a java application which is dialog based (using JDialog objects) and i want to load a background image on my dialog. I hope this could be done and i really appreciate your help because i must deliver this project and this is a user interface requirement.

    Try something along the lines of this: Create a new class called BackgroundImagePanel and have it extend JPanel.
    Have an attribute in the class for your image, and a method to set it.
    Override isOpaque() to return true.
    Override the paintComponenet method as such:
    public void paintComponent (Graphics g) {
    super.paintComponent(g);
    if( image == null ) return;
    Icon icon = new ImageIcon(image);
    icon.paintIcon(this, g, x, y);
    Add this panel to your JDialog and then add other component to this panel.
    You might have to tweak this a bit, but it should get you close...
    Bill

  • How to load a PNG image from a location in CF card

    Hi,
    I am using WTK 2.5.2. I wanted to load a PNG image to Image object. The image is loaded when I have it in the classes folder. But I want to select different image from a different location. If I try to open an Image to createImage(String) from a different location, I get IOException.
    Please help me.
    Thanks
    Deekshit M

    I got the answer, I should be using Image.createImage(InputStream) API. It works fine.
    Thanks
    DM

  • How to get crisp jpeg images for slideshow on a Mac with Final Cut?

    Hi, I imported a large number of jpegs into Final Cut Pro and when I export to Quicktime Movie (not modifying the sequence size or settings I notice the quality of the jpeg images looks rather washed out and a bit fuzzy. The image dimensions of the jpegs are actually 2848 x 4272 and I was originally using a sequence setting of 720 by 480 (which scaled the images to about 12%). I experimented with doubling the sequence setting to 1440 by 960 and scaled the images to about 25.5% - still a bit washed out look.
    Basically this will be a presentation on a computer and output via projection. Looking for best possible and clearest photos. I experimented with iPhoto and when you play a slideshow it looks very crisp - this is what I am aiming for. When I export using the Slideshow export at the largest size 640 by 480 in iPhoto to quicktime - the quality seriously deteriorates.
    What would be the best way to maintain the crispness of the photos in Final Cut for an export to Quicktime that would be show on a Mac via a projector? Thank you

    Hi Nick, I do see information on creating a slideshow with Quicktime at: http://www.apple.com/quicktime/tutorials/slideshow.html
    however it appears Quicktime X removed that capability. There is no 'open image sequence' option from the File menu in Quicktime X.
    If I do end up sticking with Final Cut - would you recommend any codec and/or dimension size that would result in the best quality or the most crisp image? I also need a few fade in's and out's on various parts - I don't believe I would have the control without Final Cut.
    Would resizing the image files in Photoshop to 1920 pixels by 1280 before importing them into Final Cut result in crisper images? Thanks.

  • How to load svg (vector) image dinamicaly.

    Hallo!
    I tryed to load dinamicaly an image svg (.ai) into flash but I can't.
    At my level:
    1) I know that flash can't import .svg file but it is possible convert svg in Adobe ilustrator .ai file;
    2) I can import .ai file in flash with no problem;
    3) I can load dinamicaly external  .jpg file with no problem;
    If I try to load dinamicaly  .ai file in the same way that I use to load  .jpg file I get this message:
    Error #2044: Unhandled ioError:. text=Error #2124: Loaded file is an unknown type. URL: file: .....
    Is there any way to solve this problem?
    Can someone help me?
    Thank you.

    you can use the urlloader class to load the svg but it won't display an image until you parse the xml, Using SVG as a level design format - Zeh Fernando

Maybe you are looking for

  • How to rotate a  graphic in Numbers?

    I have made a graph with Numbers and I want to modify the orientation. I don't know how to do.  Waiting some help. Thanks.

  • Insert the data into two tables at a time.

    Hi , i have these two tables create table [dbo].[test1]( [test1_id] [int] identity(1,1) primary key, [test2_id] [int] not null create table [dbo].[test2]( [test2_id] [int] identity(1,1) primary key, [test1_id] [int] not null alter table [dbo].[test1]

  • Error Message Java App Possible Proxy Issue

    I am trying to connect to a java app throught the internet and get the following message: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown

  • Will I lose my saved data if I update sync account ?

    I was about linking a new device when I noticied that I wasn't able to login with my "old" account, It seems that I have to create a new one. There was a link to how to update to the new Firefox Account [1] But it says that I have to unlink all my de

  • Flash CC 2014 Drawing with tablet creates straight lines

    I recently downloaded Flash and Photoshop from the free student service and when I use my tablet Intuos4, the lines you see are drawn but it's also draws in the far left, the start of the straight line is where I actually start but for some reason it