Create avatar: convert into jpg

Hi all,
I would like to let my website members to create their
avatars. There will be a .swf file for them selecting the facial
features, clicking the "save" button, converting and saving the
outlook into .jpg file, storing the file path into the database
My friend will do the flash file for selecting the facial
features. I know the php/mySQL coding for communicating with the
server and the database. But we don't know how to connect them. I
have searched in google. But I can't find something is like what I
want.
Please help me. Tell me how made it works. Any
information/tutorials/samples?
Thanks in advance.

using the LoadVars() class is the recommended way to have
flash call a php script.

Similar Messages

  • BLOB convertion into jpg

    Hello,
    I have asked about this before but I still haven't got it to work. The problem is getting a BLOB from oracle and then converting it into a .jpg file. My program only returns an empty file. If someone knows what's wrong with my code please let me know!
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.sql.*;
    import java.math.BigDecimal;
    import java.util.Map;
    import java.io.*;
    class InsertImage {
    public static void main (String args [])
    throws SQLException, IOException {
    String user, pass, snum, namer;
    int enumber;
    user = "xxx";
    pass = "xxxxxx";
         // Connect using the jdbc driver.
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver ());
         //get the connection to the ccdb database.
         OracleConnection conn = (OracleConnection)
         DriverManager.getConnection("jdbc:oracle:thin:@cactus.prism.gatech.edu:1525:ccdb",user,pass);
    conn.setAutoCommit(false);
    Statement stmt = conn.createStatement ();
    String cmd = "select * from ImageTable";
    ResultSet rset = stmt.executeQuery(cmd);
    System.out.println("Select statement executed");
    FileOutputStream outFile=null;
    while(rset.next()){
    //get the Blob locator
    System.out.println("Entering the loop ");
    String count = ((OracleResultSet)rset).getString(1);
    BLOB blob = ((OracleResultSet)rset).getBLOB(2);
    outFile = new FileOutputStream("vaf.jpg");
    //get ready to accept binary file
    int chunk = blob.getChunkSize();
    System.out.print("The chunk size is " + chunk);
    byte buffer[]= new byte[chunk];
    int length;
    InputStream instream = blob.getBinaryStream();
    // Fetch data
    while ((length = instream.read(buffer)) != -1) {
         outFile.write(buffer, 0, length);
    outFile.close();

    Hi Pal...
    Do something like this....
    //assuming that you go the connection and PreparedStatement
    String sQuery = "select picture_column from picture_table
    where picture_id='photo1'";
    pstmt = dbConnection.prepareStatement(sQuery);
    rs = pstmt.executeQuery();
    if(rs.next())
    InputStream in= rs.getBinaryStream(1);
    //assuming you are saving the picture on root directry of drive D
    FileOutputStream FOS =new FileOutputStream("d:\\photo1.jpg");
    int iChunk;
    while((iChunk = in.read()) != -1)
    FOS.write(iChunk);
    FOS.flush();
    FOS.close();
    in.close();
    That should work and you have to catch the nesesory SqlExceptions and IOExceptions

  • How convert to jpg picture into bmp ?

    Hi experts,
    I am trying to convert my jpg picture into bmp. for this i write one report but showing some
    TRANSFER WA_MIME1 TO DSN1.
    HERE IS MY FULL CODE PLZ HELP ME.
    REPORT  ZSE78_7.
    DATA: blob TYPE w3mimetabtype,
           blob_size TYPE w3param-cont_len,
           blob_type TYPE w3param-cont_type  .
    DATA:
         p_color_scheme      TYPE char20  ,
         p_labels_groupid    TYPE igs_label_tab,
         p_labels_category   TYPE igs_label_tab  ,
         p_data     TYPE     igs_data_tab,
         p_charttype     TYPE     char20,
         p_legend     TYPE     char20,
         l_igs_chart TYPE  REF TO cl_igs_chart ,
         l_igs_chart_engine TYPE  REF TO cl_igs_chart_engine,
         i_igs_image_converter TYPE REF TO cl_igs_image_converter,
         mime TYPE  w3mimetabtype,
         html TYPE  w3htmltabtype,
         html_line TYPE  w3html,
         l_msg_text(72) TYPE  c,
         l_url TYPE  w3url,
         l_content_length TYPE  i,
         l_content_type TYPE  w3param-cont_type,
         l_content_subtype TYPE  w3param-cont_type.
    CALL FUNCTION 'GUI_UPLOAD'
       EXPORTING
         filename                      = 'e:\katoch.jpg'
        filetype                      = 'BIN'
    *      HAS_FIELD_SEPARATOR           = ' '
    *      HEADER_LENGTH                 = 0
    *      READ_BY_LINE                  = 'X'
    *      DAT_MODE                      = ' '
    *      CODEPAGE                      = ' '
    *      IGNORE_CERR                   = ABAP_TRUE
    *      REPLACEMENT                   = '#'
    *      CHECK_BOM                     = ' '
    IMPORTING
        filelength                    = l_content_length
    *      HEADER                        =
       TABLES
         data_tab                      = mime
    EXCEPTIONS
        file_open_error               = 1
        file_read_error               = 2
        no_batch                      = 3
        gui_refuse_filetransfer       = 4
        invalid_type                  = 5
        no_authority                  = 6
        unknown_error                 = 7
        bad_data_format               = 8
        header_not_allowed            = 9
        separator_not_allowed         = 10
        header_too_long               = 11
        unknown_dp_error              = 12
        access_denied                 = 13
        dp_out_of_memory              = 14
        disk_full                     = 15
        dp_timeout                    = 16
        OTHERS                        = 17
    IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT i_igs_image_converter .
    i_igs_image_converter->input = 'image/jpeg'.
    i_igs_image_converter->output = 'image/x-ms-bmp'.
    i_igs_image_converter->width = '100'.
    i_igs_image_converter->height = '100'.
    CALL METHOD i_igs_image_converter->set_image
       EXPORTING
         blob      = mime
         blob_size = l_content_length.
    CALL METHOD i_igs_image_converter->execute
       EXCEPTIONS
         communication_error = 1
         internal_error      = 2
         external_error      = 3
         OTHERS              = 4.
    IF sy-subrc = 0.
       CALL METHOD i_igs_image_converter->get_image
         IMPORTING
           blob      = blob
           blob_size = blob_size
           blob_type = blob_type.
       DATA dsn1(20) TYPE c VALUE 'E:\test.bmp'.
    DATA wa_mime1 TYPE w3mime.
    *DATA wa_mime1 TYPE w3mimetabtype.
       OPEN DATASET  dsn1   FOR OUTPUT IN BINARY MODE.
       LOOP AT blob INTO wa_mime1.
         TRANSFER wa_mime1 TO dsn1.
         CLEAR wa_mime1.
       ENDLOOP.
    MESSAGE ' successfull' TYPE 'I'.
       CLOSE DATASET dsn1.
    ELSE.
       DATA: num TYPE i, message TYPE string.
       CALL METHOD i_igs_image_converter->get_error
         IMPORTING
           number  = num
           MESSAGE = message.
    MESSAGE 'not successfull' TYPE 'I'.
    ENDIF.

    HI
    i already converted it in binary form but when i transferring it to binary mode it generate error.
    the code is like this.
    LOOP AT blob INTO wa_mime1.
         TRANSFER wa_mime1 TO dsn1.
         CLEAR wa_mime1.
       ENDLOOP.
       CLOSE DATASET dsn1.

  • How can i convert CR2 images into jpg format, without iPhoto?

    i just import a lot of images with the format .CR2 to mac through "Image capture" is there an app to convert the frmat into .jpg, app like image capture or something like that?

    If Canons software doesn't work...?
    Try Snap Converter, File Juicer or Contenta Converter

  • How do I convert a document created in pages into a pdf document?

    I created a document in pages of my macbookpro, and now I need to convert into a pdf or doc,docx,htm,html,odt,pdf,rtf,tif,tiff,txt > Help will be apreciated.

    You can also Export as PDF or Word. Gives you a few PDF/Word conversion options as well:
    http://support.apple.com/kb/HT3705

  • PSE12: How to create gridlines on the image page then converted into a pdf? [was: N276]

    I want to download an image from the internet, for example, batman, create gridlines on the image page then converted into a pdf.  where on adobe photo shop element 12 can I do this.

    On way is to define a pattern:
    https://forums.adobe.com/thread/875370?tstart=0
    Another way is this neat free grid generator filter:
    http://www.richardrosenman.com/software/downloads/
    1. Add a blank layer above the picture layer, fill with white, and set Blend Mode to Multiply.
    2. Apply the filter. There are many options. Here I chose black lines on white background with 20 square boxes across. Note that the background should be pure white (255,255,255) so as not to change the original picture.
    You can also find lots of grid images on the Internet, for example a Google search on "grid" or "grid paper". As in the previous method, add this image above your picture and set its Blend Mode to Multiply.  Again, the background should be pure white.

  • I create name plaques using TypeStyler, but my laser cutter says they must be converted into two vector files; a cut file to cut the outlines of all the letters and an "etch" to etch the letter intersect lines.  Can AI convert my TypeStyler file into a cu

    I create name plaques using TypeStyler, but my laser cutter says they must be converted into two vector files; a cut file to cut the outlines of all the letters and an "etch" to etch the letter intersect lines.  Can AI convert my TypeStyler file into a cut file and an etch file?

    Thanks. I might use it soon...
    Does it automatically make folders named after the volume labels? And does it handle the conversion of spaces and non-alphanumeric characters to octal codes?
    I could read the script but it would be faster for everyone reading, if you leave the answer as a reply.
    I also think that there should be some major work done on modernizing the fstab, either by replacing it with a better implementation of file system mounting or changing the file structure and adding in better handling of non-alphanumerics. I don't want to have to look up a stupid octal table every time I type in my labels.

  • Problem converting a batch of RAW's into jpg's

    I want to convert 200 RAW's into jpg's. been doing that for years but recently upgraded to Photoshop CC.
    When I run the imageprocessor it opens the first photo in Camera RAW and that's all, nothing happens...

    Moving to Photoshop forum.

  • Last wish, preset converting RAW into JPG with more contrast, saturation & sharpening

    A close family member is dying and she has still many RAW files, which of course look slightly lifeless as all RAW files do. She asked me to look for a simple Lightroom preset which will convert her RAWs into Jpgs with more contrast, saturation and sharpening. She has Lightroom 3, but has no experience in making presets and neither do I. She needs the preset to make the RAW files as Jpgs available to her partner & children. No fancy effects; just simple. She cannot work on her computer anymore. Can you help me with a concrete preset or if not can you make one for her?

    This forum is for plugin developers - consider posting in 'Photoshop Lightroom' forum instead (at top of page, New -> Discussion -> Photoshop Lightroom).

  • How to batch convert bmp files into jpg by dos command or c# program language?

    How to batch convert bmp files into jpg by dos command or c# program language?
    Many thanks for replying.

    Try
    GraphicsMagick.

  • How do I convert a JPG into PDF, Adobe converter not available in India yet ?!!!!!

    How do I convert a JPG into PDF, Adobe converter not available in India yet ?!!!!!

    Hi supersude,
    You can use Acrobat XI Pro software for converting jpg into pdf, Here's the download Link (Free 30 Days trial ) : https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    You can buy the full version here : Adobe Store - Adobe Acrobat Professional XI
    Regards,
    Rahul

  • OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    Love the Adobe products first. OK , I have my instructional coaches creating power point presentation add audio to each slide with the presenter 10 add ins. I need these presentation converted into MP4 like you can do with adobe presenter video creator.

    If you import the PPT deck into Captivate it will not bring the audio from Presenter. But you can import it into Captivate after the slide deck has been imported. The audio files aren't necessarily named in a logical fashion in the source files for the presentation, so I would recommend that you publish the presentation locally and then find the 'data' folder in the published output and the audio files will be named in a way that you can infer the slide they are associated with. Not the simplest proceedure but it should be pretty painless.

  • With Netscape all of the Webcam shots from live feeds were automatically saved in my cache folder and I could simply open my cache send the saved files into AcDsee and convert them into jpgs, It would save as many as I would allow space for. With firefox

    I cant retrieve my images from webcams that are cached any more with mozilla. With netscape all of the live webcam images from live cams were automatically saved in my cache folder and all i had to do was open it send the files to acdsee and turn them into jpgs. It would save them untill the Cache ran out of room no matter how many files or sites I had running. Mozilla seems to save what it wants when it wants and often dose not save any that I can retrieve because I believe it is bulking them into Cache 123 or 4 and those i cant open to retrieve the files. Sometimes it saves 100 or so and sometimes 2 or 3 sometimes 10 or more but i don't seem to have any control over what it does or does not save to retrieve no matter how much space i allow for the cache to save.
    == This happened ==
    Every time Firefox opened
    == I finally gave up trying to keep netscape due to all the ridiculess popups and continued reminders from you saying i had to switch over

    You have or had an extension installed (Ant.com Toolbar) that has changed the user agent from Firefox/3.6.3 to Firefox/3.0.12.
    You can see the Firefox version at the top and the user agent at bottom of the "Help > About" window (Mac: Firefox > About Mozilla Firefox).
    You can check the '''general.useragent''' prefs on the '''about:config''' page.
    You can open the ''about:config'' page via the location bar, just like you open a website.
    Filter: '''general.useragent'''
    If ''general.useragent'' prefs are bold (user set) then you can right-click that pref and choose ''Reset''.
    See [[Web sites or add-ons incorrectly report incompatible browser]] and [[Finding your Firefox version]]
    See also http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • Convert Webarchive Files into jpg Files.

    I am hoping someone can help with the above.
    I wish to download webarchive pictures and store them in my iPhoto Library.At the moment I cannot find a way of converting into the correct file type.
    Can someone HELP please.

    Hello Terence.
    Thanks for responding.
    I have downloaded pictures of cars from the Auto Trader website.These have been saved as Webarchive Files in a Folder on my Desktop.When I click on them they open in Safari for viewing , no problem.
    I am trying to transfer and store them in my iPhoto Library for possible editing/printing as normal photos.
    Regards Colin.

  • How to convert RAW into jpgs?

    I used to use Capture One by Phase One to process my RAW images into jpgs, when I had WinXP on my pc. With my new computer, it has the new 64 bit, with Win Vista. Now, using Capture One is a total joke. You can't possibly get anything done.
    How can I use Photoshop CS4 to process RAW images into jpgs? I don't see a way that I can apply changes on one image, to others in a particular group. With Capture One when it was good on WinXP, I could make changes to one, lighten/brighten, sharpen, change the color temp, etc., apply it to all the desired images, then click to output a certain size, say 5x7 at 200 ppi, hit the button, and it would do it. I don't see that I can do any of that in Photoshop, short of using the ever-annoying set and action, then automate.
    Also, for professional work, where I'm processing hundreds of images at a time, is there other software I should look at, like Lightroom, Gimp, etc.?

    jeff bach wrote:
    How can I use Photoshop CS4 to process RAW images into jpgs?
    Use Bridge and Camera Raw:  Navigate Bridge to the folder with your raw files.  In Bridge, select/highlight the images you wish to process and save, then Open in Camera Raw (File > Open in Camera Raw, or Ctrl-R, or right click and Open in Camera Raw from context menu). Your selected raw images will open in camera raw in Filmstrip view.  Make any desired camera raw adjustments then, still in camera raw, do Select All then at bottom Save Images...  which will bring up a save options box in which you can choose jpegs or tff, where to save, and other options.
    With Capture One when it was good on WinXP, I could make changes to one, lighten/brighten, sharpen, change the color temp, etc., apply it to all the desired images, then click to output a certain size, say 5x7 at 200 ppi, hit the button, and it would do it. I don't see that I can do any of that in Photoshop, short of using the ever-annoying set and action, then automate.
    There are several ways to make changes to one image in camera raw then apply the changes to other raw image files.  In camera raw filmstrip mode, select the images you want to apply an adjustment to then apply the adjustment to the first of those images and it will be applied to all the others that are selected.  Or apply adjustments to the first image of a series then add additional selections and use camera raw's Synchronize.  Or, make adjustments to first image in series then click done, which will return you to Bridge.  In Bridge, select the image you want to copy camera raw adjustments from then Develop Settings > Copy Settings.  Select all the target images that you want to receive these settings then Develop Settings > Copy Settings.  Both Copy settings and ACR's Synchronize will bring up a selection box where you can check which settings you want to copy.
    You can select save ppi in camera raw.  You can use Camera Raw's crop function can get files to a desired aspect ratio if they are not already there.  Crop can be copied to other files via Synchronize or Develop settings - Copy if that is useful.  Getting a specific size in pixel dimensions may take another step.  Camera Raw offers a limited set of file sizes (in its Workflow Options).  If you want other than these, then one methodis to save images from Bridge using Photoshop's image processor.  After making camera raw adjustments and returning to Bridge, select desired raw images then Tools > Photoshop > Image Processor...  Set size and output options in the image processor.

Maybe you are looking for

  • SAP report print formats

    Hi! There are several report print formats in an ABAP report. You can choose between them during printing, some examples: X_65_80 (80 columns, 65 lines), X_90_120 (120 columns, 90 lines) and so on... Is there away to define more "standard" like print

  • Assign to desktop option not showing up for a few programs

    Hi!  Well Assign to desktop is a great feature.  The problem I am having is that it does not show up under options for several programs.  It does show up with others.  Two of the programs it is not showing up with are Lightroom 4 and SpeedGrade from

  • Procedure to Technical & Business systems?

    Hi Gurus, Can anyone explain me how to create a technical system and buisness system for R/3. i want to know while creating buisness system for R/3 in SLD we need to provide logical system name. Creation of that logical system shld b done in XI box o

  • Beige won't start at all

    Got to the root of the USB problem -- not the card at all. The computer was not communicating with the printer, or any printer for that matter. So I decided to re-install OS 10.3. The installation was near complete from disc 1 when the screen went to

  • CISCO1905-SEC/K9 Ordering Issue

    Dear Team, I am trying to run the configuration for CISCO1905-SEC/K9 Router on the CCW but unable to configure it there. Is this product EoL/EoS? If yes, I am unable to find any documentary evidence on the Cisco Website. If somebody has it, please sh